ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
60.75k stars 10.27k forks source link

Is available a way to colorize words in a multiline input text yet? #2728

Open bovacu opened 5 years ago

bovacu commented 5 years ago

Version: latest Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: SFML Compiler: mingw (if the question is related to building or platform specific features) Operating System: ubuntu 19

Hi, I'm creating my own scripting language and a small, but (I hope) in a future powerful code editor for the scripting language. I have now autocompletion for words, I can compile the programs... but I lack one important thing and is that I use a multi line text input to write the code, so I wonder if there's yet a way to change the color in the multi line. I know if you write to console there is code that changes the output (\033[91mMy Red Text\033[0m) and I've tried that and it seems not to work. I have read other issues about this topic, but I have not seen anything that could help me (or at least I think so).

So any help is welcome, thank you so much.

img

ocornut commented 5 years ago

For now your best bet is to use one of the text editor widget listed in the Wiki, e.g.

Also linking to #902