| commit | ca2f9f1462e3b60e56351bc466acda448c5ea50d | [log] [tgz] |
|---|---|---|
| author | BalazsJako <this.is.balazs.jako@gmail.com> | Mon Nov 24 18:58:11 2025 +0000 |
| committer | GitHub <noreply@github.com> | Mon Nov 24 18:58:11 2025 +0000 |
| tree | c47def71cbf28f612f4de9ada20e461db8137b4e | |
| parent | 0a88824f7de8d0bd11d8419066caa7d3469395c4 [diff] | |
| parent | 7454c1f421be04f05f1c58eb2d3db5efaace2e19 [diff] |
Merge pull request #166 from ocornut/fix_for_192 Fixes for latest dear imgui (tested with 1.92.5)
Syntax highlighting text editor for ImGui

Demo project: https://github.com/BalazsJako/ColorTextEditorDemo
This started as my attempt to write a relatively simple widget which provides text editing functionality with syntax highlighting. Now there are other contributors who provide valuable additions.
While it relies on Omar Cornut's https://github.com/ocornut/imgui, it does not follow the “pure” one widget - one function approach. Since the editor has to maintain a relatively complex and large internal state, it did not seem to be practical to try and enforce fully immediate mode. It stores its internal state in an object instance which is reused across frames.
The code is (still) work in progress, please report if you find any issues.
Please post your screenshots if you find this little piece of software useful. :)
If you want to contribute, please refer to CONTRIBUTE file.