DETEY - is a small, text editor by Tsoding (with my improvements).
Syntax highlighting, minimalistic file browser and GPU-backed text rendering. It is implemented in portable C and uses SDL2, FreeType and GLEW for windowing, font rasterization and OpenGL.
- Fast glyph atlas based text rendering (see
free_glyph_atlas_render_line_sized) - Simple software lexer for basic C/C++ token highlighting (see
lexer_next) - Camera-driven UI with a tiny renderer abstraction (see
renderer_init) - Editor core with selection, search, file IO and cursor movement (see
editor_render,editor_save) - Minimal file browser implemented in src/fs/file_browser.c
POSIX:
./build.sh
./detey src/main.cWindows (MSVC):
.\setup_dependencies.bat
.\build_msvc.bat
.\detey.exe src\main.cCode overview (entry points)
- src/main.c — application bootstrap, event loop and keybindings
- src/core/editor.c — editor logic, rendering glue and user actions
- src/lexer.c — tokenization / syntax classification
- src/free_glyph.c — glyph atlas and text drawing helpers
- src/ui/renderer.c — thin GL renderer and shader management
- src/fs/file_browser.c — simple directory listing and navigation
Contributing
- Bug fixes and small documentation updates welcome. See CONTRIBUTING.md.
License
- MIT — see LICENSE
