Today we’re going to embed an code editor in website.
I found a code editor called codemirror. which is lighter than monaco.
See my last article –
For features visit CodeMirror WebSite
Then Create a dummy text box for your Editor
<textarea id="editor"> your code here... </textarea>
Having done this, an editor instance can be created like this:
Then enjoy it.
I hope to write more articles with advanced use cases of embedded editor.
Follow 🏃♂️ me for more articles.
Ask🙏 any question on comments section.
Star⭐ me if you love this article.
cover image by Unsplash
Happy Coding 👩💻👩💻👩💻…