Mle – a small text editor in under 10,000 lines of code
If you’re into C, one of the most interesting applications you can write is a text editor. It demands ability to use pointers for storing the text efficiently and command handling and doing things like searching, handling Unicode.
It can be equally instructive reading code someone else has written and this case Mle, is a text editor in less than 10,000 lines of C. It’s also cross-platform apparently, though you’ll have to build it on the relevant platform.
It uses three other open source libraries, linked at the foot of the main page. They are uthash, termbox2 and PCRE2.