commit | 9f8a336e0d73f78b003f7392f1871c2dd746eb9c | [log] [tgz] |
---|---|---|
author | BalazsJako <this.is.balazs.jako@gmail.com> | Fri Jun 14 06:14:06 2019 +0100 |
committer | BalazsJako <this.is.balazs.jako@gmail.com> | Fri Jun 14 06:14:06 2019 +0100 |
tree | ccbafb2a50cf457716c9990caa21b37d820e6888 | |
parent | e2a25206024408bf7d9839f54028c2c7bff6fdab [diff] |
Fix for #86: Invalid cursor position after mouse click on line with tabulations Also removed some unnecessary SanitizeCooridates calls.
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.