A lightweight code editor using Dear ImGui, GLFW, and ImGuiColorTextEdit.
pcode-editor v0.8.0
- Syntax highlighting - 20+ languages (C, C++, Python, JavaScript, etc.)
- Multi-tab editing - Multiple files in tabs
- Status bar - Shows file info, cursor position, encoding
- Dark/Light theme - Toggle via menu
- Font resizing - Zoom in/out
- File/Symbol/Git views - Resizable sidebar with symbol outline (Poorman's parser)
./scripts/build-windows.bat # Windows
./scripts/build-linux.sh # Linux./build/Release/pcode-editor.exe # Windows
./build/Release/pcode-editor # LinuxCtrl+N- New tabCtrl+O- Open fileCtrl+S- SaveCtrl+W- Close tabCtrl++- Zoom inCtrl+-- Zoom outCtrl+0- Reset zoom
The following features were planned but not working and have been removed:
- Terminal - ImGui can't get raw keyboard input for interactive shells
- Vim mode - Incompatible with ImGui's input model
- Minimap - Not implemented
- Code folding - Not implemented
- Bookmarks - Not implemented
- File explorer - Not implemented
Settings stored in pcode-settings.json:
{
"window_w": 1280,
"window_h": 800,
"dark_theme": true,
"font_size": 18,
"font_name": "JetBrains Mono",
"tab_size": 4
}All dependencies fetched automatically via CMake FetchContent:
- Dear ImGui - Immediate mode GUI
- GLFW - Window/input management
- ImGuiColorTextEdit - Syntax highlighting
- Native File Dialog - File dialogs
BSD 2-Clause License - see LICENSE file.