commit | 602c34c99fe0f057de3b7d9f7283075ca5c8332a | [log] [tgz] |
---|---|---|
author | Marcel Smit <marcel303@gmail.com> | Sun Jul 29 15:46:28 2018 +0200 |
committer | Marcel Smit <marcel303@gmail.com> | Sun Jul 29 15:46:28 2018 +0200 |
tree | 2c4db9dfd5adc786f5bc3d0a2f9854442ee20c21 | |
parent | 1fbba2fe8da83139a39789ea4ef8ca3077143b79 [diff] |
Always show horizontal scrollbar to avoid window client size from constantly changing, confusing the vertical scrolling and causing lots of jitter as the scroll location jumps around.
Syntax highlighting text editor for ImGui
Demo project: https://github.com/BalazsJako/ColorTextEditorDemo
This is my attempt to write a relatively simple widget which provides source code editing functionality with basic syntax highlighting.
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 internal state, it did not seem to be practical to try and enforce fully immediate mode.
The code is work in progress, please report if you find any issues.
Main features are:
Known issues:
Don't forget to post your screenshots if you use this little piece of software in order to keep me motivated. :)