- What do you want to achieve? Keep it simple and clear!
I would like to know if it’s possible to write a custom widget that I can include in my game where people can write syntax highlighted Lua code (or any other custom text format that I write the highlighter for) ?
I would like to make something similar to this (the editor in the screenshot was made with c++ and raylib)
(the person manually programmed everything from letter typing to syntax highlighting etc)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I didn’t try any solutions yet because I have no ideas on how to make my own programmable ui widget that can be added into the explorer like TextBox/ImageLabel etc.
I also though about maybe instead rendering each character separately and then regrouping them and colorizing it ? But I have no ideas
I’m not asking a completed code , but I’d like if possible if someone can give me some head about how I could do this , as I think that there was a Lua learning game that had that feature iirc.
Thanks in advance to anyone who takes some time to help me