sublime Text3编译lua

来源:互联网 发布:淘宝客贴吧 编辑:程序博客网 时间:2024/05/16 14:51

参考文章

http://www.vvbin.com/?p=333


【编译】

想在subLime中集成编译Lua(或其他语言)功能,只需要在Tool->Build System -> New Build System中添加代码

{    "cmd": ["D:/Program Files (x86)/Lua/5.1/lua.exe(这里是lua编译器路径)", "$file"],    "file_regex": "^(?:lua:)?[\t ](...*?):([0-9]*):?([0-9]*)",    "selector": "source.lua"}
保存该文件名称为Lua,<span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22px; background-color: rgb(239, 239, 239);">以</span><span style="font-family: tahoma, 宋体; font-size: 14px; line-height: 22px; background-color: rgb(239, 239, 239); color: rgb(255, 0, 0);"><strong>.sublime-build</strong></span><span style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; font-size: 14px; line-height: 22px; background-color: rgb(239, 239, 239);">为后缀,比如</span><span style="font-family: tahoma, 宋体; font-size: 14px; line-height: 22px; background-color: rgb(239, 239, 239); color: rgb(255, 0, 0);"><strong>Lua.sublime-build</strong></span>,然后保存到subLime Text安装路径下(D:\Program Files\Sublime Text 3\Data\Packages\User),
重启subLime Text ,然后选择工具->编译系统,选择Lua,完成!

0 0
原创粉丝点击