To integrate the compilation Lua (or other languages) function in sublime Text 3, you only need to set the original
{
"Shell_cmd": "make"
}
Replace it with the following code:
{"Cmd": ["C:/users/Administrator/appdata/Roaming/sublime text 2/compile.exe", "$ file"], "file_regex": "^ (? : Lua :)? [\ T] (... *?) :( [0-9] *):? ([0-9] *) "," selector ":" source. Lua "}
Create a new Lua folder in the/packages/directory of the sublime text folder and save it as the Lua. sublime-Build File.
Here, "C:/users/Administrator/appdata/Roaming/sublime text 2/compile.exe" is the path of the Lua compiler. If the system environment variable has been configured with the Lua key value, you can directly write "cmd": ["Lua", "$ file"]
You can use preferences-> browse packages to open the sublime text folder.
After everything is set, use the CTRL + B shortcut to compile the file.
Build the Lua environment on Mac here
Sublime text (2/3) Compile Lua