简体   繁体   English

SciTE解决Lua编译器问题

[英]SciTE for lua compiler issues

After install SciTE IDE for lua why Compile,Build and run option are disabled. 在安装了SciTE IDE for lua之后,为什么禁用“编译,生成和运行”选项。

在此输入图像描述

What to do,how to enable those portions 怎么办,如何启用这些部分

Note: Installed LuaForWindows_v5.1.4-46.exe on my PC(OS=win-8.1 and 64 bit) 注意:我的PC上已安装LuaForWindows_v5.1.4-46.exe (OS = win-8.1和64位)

You've opened the .properties type of file, for which those actions are not defined. 您已经打开了.properties类型的文件,但尚未定义这些操作。

Try opening some other file, for eg. 尝试打开其他文件,例如。 .py , .lua or .c and check whether they are still disabled. .py.lua.c并检查它们是否仍处于禁用状态。 If so, open the language specific .properties file and edit the following keys accordingly: 如果是这样,请打开特定于语言的.properties文件,并相应地编辑以下键:

command.compile.filepattern=
command.build.filepattern=
command.go.filepattern=

Add these lines to your "lua.properties" file: 将这些行添加到“ lua.properties”文件中:

command.go.*.lua=C:\PathToLua\lua.exe "$(FileNameExt)" $(1) $(2) $(3) $(4)
command.compile.*.lua=C:\PathToLua\luac.exe -s -o "$(FileName).luac" "$(FileNameExt)"
# ===  or if you prefer LuaJIT  ===
#command.go.*.lua=C:\PathToLuaJIT\luajit.exe -eio.stdout:setvbuf'no' "$(FileNameExt)" $(1) $(2) $(3) $(4)
#command.compile.*.lua=C:\PathToLuaJIT\luajit.exe -b "$(FileNameExt)" "$(FileName).luac"

calltip.lua.word.characters=.:$(word.chars.lua)
calltip.lua.end.definition=)
api.$(file.patterns.lua)=$(SciteDefaultHome)\lua5.api;$(SciteDefaultHome)\SciTELua.api

Use menu View -> Parameters to set values for $(1)...$(4) 使用菜单视图->参数设置$(1)... $(4)的值

Calltip files you need: 您需要的Calltip文件:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM