Initial commit: X11 C code editor

This commit is contained in:
user committed 2026-11-30 22:12:00 +03:00
commit 8eae6763f6
21 files changed
+36389

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
code_editor/
├── editor.h
├── main.c
├── file_io.c
├── clipboard.c
├── history_search.c
├── render/
│ ├── render.h
│ ├── render_main.c (основной цикл отрисовки, строки, курсор)
│ ├── render_syntax.c (подсветка синтаксиса C)
│ └── render_ui.c (подсветка поиска/выделения, скроллбары, статус/чекбокс)
└── input/
├── input.h
├── utf8.c (работа с UTF-8 символами)
├── text_ops.c (вставка, удаление, работа с выделением)
├── keyboard.c (горячие клавиши, поиск, ввод)
└── mouse.c (клики, выделение мышью, скроллбары)
=================================================================================================
Compilation:
gcc -Wall -Wextra main.c file_io.c clipboard.c history_search.c menu.c tabs.c file_dialog.c \
render/render_main.c render/render_syntax.c render/render_ui.c \
input/utf8.c input/text_ops.c input/keyboard.c input/mouse.c \
-o editor $(pkg-config --cflags --libs x11 xft)
Run:
./editor main.c editor.h tabs.c