Egui Code Editor

Text Editor Widget for egui with numbered lines and simple syntax highlighting based on keywords sets.

Usage

```rust use eguicodeeditor::{CodeEditor, ColorTheme, Syntax};

CodeEditor::default() .idsource("code editor") .withrows(12) .withfontsize(14.0) .withtheme(ColorTheme::GRUVBOX) .withsyntax(Syntax::rust()) .withnumlines(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

Ayu Dark

Ayu Dark

Ayu Mirage

Ayu Mirage

Github Dark

Github Dark

Github Light

Github Light

Gruvbox

Gruvbox

Gruvbox Light

Gruvbox Light

Sonokai

Sonokai