所需軟件
配置過程
- 解壓Lua5.3.5包
- 官方下載的包內是須要makefile安裝的(博主Win10下暫爲實現),此處提供自動配置完畢的包:Lua5.3.5
![](http://static.javashuo.com/static/loading.gif)
- 設置Lua環境變量
- 這臺電腦->屬性->高級系統設置->環境變量->用戶變量,找到path,編輯->新建->C:\lua-5.3.5\dist\bin
- 在Sublime Text3 內添加Lua 編譯系統
- 工具->編譯系統->新建編譯系統,添加代碼(注意:首行代碼地址爲上述lua包內的lua.exe地址),保存編譯系統名Lua5.3.5
{
"cmd": ["C:/Lua/lua5.3.5/dist/bin/lua.exe", "$file"],
"file_regex": "^(?:lua:)?[\t ](...*?):([0-9]*):?([0-9]*)",
"selector": "source.lua"
}
- 編寫Lua代碼,ctrl+B編譯:
![](http://static.javashuo.com/static/loading.gif)
參考
Sublime配置lua開發環境傻瓜式教學
Windows 10 設置環境變量
Windows 下編譯安裝 Lua 5.3.5git
其餘
CSDN Go Diegithub
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)