8 releases
new 0.1.9 | Nov 27, 2023 |
---|---|
0.1.8 | Sep 29, 2023 |
0.1.5 | Aug 26, 2023 |
0.1.2 | Jul 17, 2023 |
#177 in GUI
370 downloads per month
Used in cpclib-visual-bndbuild
405KB
2K
SLoC
Egui Code Editor
Text Editor Widget for egui with numbered lines and simple syntax highlighting based on keywords sets.
Usage
use egui_code_editor::{CodeEditor, ColorTheme, Syntax};
CodeEditor::default()
.id_source("code editor")
.with_rows(12)
.with_fontsize(14.0)
.with_theme(ColorTheme::GRUVBOX)
.with_syntax(Syntax::rust())
.with_numlines(true)
.show(ui, &mut self.code);
Themes
Based on themes in Helix Editor.
Font used in examples is Comic Code by Toshi Omagari.
Ayu
Ayu Dark
Ayu Mirage
Github Dark
Github Light
Gruvbox
Gruvbox Light
Sonokai
Dependencies
~4–9.5MB
~71K SLoC