I wrote a code editor in C and now I'm a changed man
19 hours ago
- #text-editor
- #plugins
- #light-HolyCode
- light ' HolyCode is designed for convenience first, speed second.
- It has almost no runtime overhead for the editor.
- light buffers code, displays it, and reads input asynchronously.
- Controls are intuitive (Up, Down, Left, Right).
- No modes like Vim/Neovim; everything happens in INSERT mode.
- Supports plugins and shortcuts to modify DISPLAY_BUFFER.
- Plugins alter DISPLAY_BUFFER based on input (e.g., line numbers, highlighting).
- Shortcuts change DISPLAY_BUFFER attributes (e.g., Ctrl + L adds a line below).
- Adding plugins and shortcuts is simple.
- Used in Orthodox, a compiler under ~10,000 LOC.