- Home /
Script editor with syntax highlight at runtime
We are developing a game which allow player to type Lua script and mod the game in Runtime. I've found that it's extremely hard to make it working and look nice with UGUI's InputField....
What we want at this stage is Syntax Highlight and may be Code Completion.
So far I've completed some syntax highlight function using Regex, but it only works after input field end edit (on UI.Text but not UI.InputField): demo
In other words, I want a SI3 but in runtime and Lua.
I can't find any solution out there. Anyone can give me a hint? Or should I use Text Mesh Pro, etc, to make the solution easier?
Answer by SweatyChair · Nov 28, 2018 at 11:59 PM
Just to answer my question if anyone interested.
I've contacted the author of SI3 and Code Editor, both of them said it won't be an easy task and require weeks of work.
Right now I just stick with the Regex solution first and go deep into it when we have more resources.
Your answer
Follow this Question
Related Questions
CodePage 1252 not supported - works in editor but not in standalone player 8 Answers
Monodevelop Bug/Syntax Highlighting 1 Answer
What is a good Javascript editor, with Syntax highlighting and checking? 5 Answers
c# syntax ((float>0)?(1):(2)) 2 Answers
Draw 'Bubble' (like Console Collapse icon) in editor 1 Answer