sublime Text3编译lua

本文提供了一步式指南,在subLime编辑器中集成Lua编译器,包括设置BuildSystem和保存配置文件的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考文章

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,完成!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值