Kilo
A text editor in less than 1000 LOC with syntax highlight and search
...It deliberately avoids external dependencies, not even using curses; instead it talks directly to the terminal using VT100 escape sequences, making it portable to most Unix-like systems with a compatible terminal. Because the codebase is compact and well-structured, it has become a popular teaching and learning resource, inspiring tutorials such as “Build Your Own Text Editor” that walk through implementing Kilo step by step.