TL;DR
Expose text field caret position to Lua API.What ?
Add caret position information to `on_gui_text_changed` event for `LuaGuiElement::text-box` (and may be to `LuaGuiElement::textfield`)https://lua-api.factorio.com/latest/eve ... xt_changed
Why ?
This will enable support for syntax highlighting and code suggestions libraries.Which will improve the quality of the mods and indirectly improve the UX.