[Suggestion] Code editor
Hi! I just found this : https://github.com/BalazsJako/ImGuiColorTextEdit Do you think this is a good idea to implement this into Imguin?
Thanks for your answer! Also big thanks for your library! Here is what I'm developing with it :
Hi, probably updated and implemented for C language version is here
https://github.com/cimgui/cimCTE
I will try implement it for Nim language.
Your application is very cool!
That implementation has been done in my local repository.
I'll upload it later.
Push has been done.
Update imguin and imguin_examples repository then please try this
https://github.com/dinau/imguin_examples/tree/main/glfw_opengl3_imColorTextEdit
Push has been done.
Update imguin and imguin_examples repository then please try this https://github.com/dinau/imguin_examples/tree/main/glfw_opengl3_imColorTextEdit
Tried both the demo and in my software, works pretty nice! Thanks a lot!
However, is it possible to know when the text is modified? I need to execute some code when I modify the text.
Thanks for your answer!
It seems the function that checks modification for text doesn't exist,
so you should check it by your program with Hash function so on.
It seems the function that checks modification for text doesn't exist,
so you should check it by your program withHash functionso on.
I think I found a much more lightweight solution. I can query the Undo Index. What I do is I query this index before I render the editor, and then I query it again after rendering If the indexes are different, that means some editing was done and thus, the text was changed.
That's the good idea!
Hi! I found a problem.
Seems the ALT GR key (or CTRL + ALT) does't work in the editor. I have an AZERTY keyboard and thus, I can't have the square brackets.
Hi! So I have more infos about this issue : This bug happens on Linux, but everything works just fine on Windows.
Could you show the minimal and reproducible sample source ?