2

After install SciTE IDE for lua why Compile,Build and run option are disabled.

enter image description here

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)

hjpotter92
  • 78,589
  • 36
  • 144
  • 183
shamim
  • 6,640
  • 20
  • 85
  • 151

2 Answers2

0

You've opened the .properties type of file, for which those actions are not defined.

Try opening some other file, for eg. .py, .lua or .c and check whether they are still disabled. If so, open the language specific .properties file and edit the following keys accordingly:

command.compile.filepattern=
command.build.filepattern=
command.go.filepattern=
hjpotter92
  • 78,589
  • 36
  • 144
  • 183
  • thanks for your effort.Now it's working.Looking for one suggestion,which IDE is best for lua. – shamim Mar 05 '16 at 06:01
  • I use scite when in windows, and emacs on other platforms. It is your own choice though, whichever editor/ide you're comfortable in. – hjpotter92 Mar 05 '16 at 06:40
  • @hjpotter92 - Why using different editors on different platforms? It's more convenient to use SciTE everywhere. – Egor Skriptunoff Mar 05 '16 at 09:03
  • @EgorSkriptunoff I'll be switching to Emacs soon. Most of my work these days is regarding the emacs' web-mode. – hjpotter92 Mar 05 '16 at 10:31
0

Add these lines to your "lua.properties" file:

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)

Calltip files you need:

Egor Skriptunoff
  • 23,359
  • 2
  • 34
  • 64
  • thanks for your reply, what to do with those files lua5.api and SciTELua.api .Will i download it and show the path on parameter set value.What to do? – shamim Mar 06 '16 at 03:34
  • Just copy them to your SciTE folder (where all .properties files are located) – Egor Skriptunoff Mar 06 '16 at 07:13