ParentFull threadcaptn3m0·Writing an editor from scratch is a fun exercise. I've written a few using codemirror, and can recommend the kilo-tutorial[1], which walks you through antirez's kilo editor (a 1000 line editor) and explains each change in steps.[1]: https://viewsourcecode.org/snaptoken/kilo/View on HN