commit | 66b9a0c03ef7fa6b412a6f40fcc7769ce5f3001b | [log] [tgz] |
---|---|---|
author | Marcel Smit <marcel303@gmail.com> | Fri Sep 14 22:50:16 2018 +0900 |
committer | Marcel Smit <marcel303@gmail.com> | Fri Sep 14 22:50:16 2018 +0900 |
tree | 0951925f56d48be3e48682a40093dd782afb3cc2 | |
parent | 10917ee980efd15416de63e71bc1f8edeb4a5fc5 [diff] |
Fix for incorrect undo after 'backspace' at column 0 (concatenating the current line to the previous line). The undo start location should be at the end of the previous line.
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. :)