Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If you're open to using libraries (Not attempting to do this from scratch) codemirror is one of the gold standards for this. Many other projects use codemirror. If I remember rightly, the chrome devtools even use codemirror. The API (To customize editors and run actions against the editor via JavaScript) is really good. The creator is an amazing developer, they're the author of the book Eloquent JavaScript which is worth a read if you want to gain a deep understanding of the core parts of JavaScript.
“New to web development” and “building a text editor” don’t really go together, but… check out the monaco editor, it’s the editor used in VS Code.
Related posts
- [Webview] Scrolling jumps in Monaco editor
- Repos: custom code languages syntax colorization via monaco editor
- Kako da u JavaScriptu napravim da se kôd oboji dok ga korisnik ukucava? Uspio sam napraviti da se kôd oboji kad korisnik pritisne tipku, ali nisam uspio napraviti da se boja dok ga korisnik ukucava.
- Useful Leetcode Keyboard Shortcuts?
- Anyway to have an XML editor in Angular 14-15