Lua scripting line by line
问题 I added Lua scripting to my C# Application by using the DynamicLua libary and it works very well. I would like to implement that you get the current line which is being executed (Like in Visual Studio) and highlight it. Currently I am doing this: public static void RunLua(string LuaToExecute) { dynamic lua = new DynamicLua.DynamicLua(); string[] lua_s_split = LuaToExecute.Split('\n'); int counter = 0; foreach (string line in lua_s_split) { // highlight current line in editor HighlightLine