Code editor engine in Lua