How to run a lua script in scite?
How to run a lua script in scite?
I see the menu is gray.
Where is this controlled?
Re: How to run a lua script in scite?
These are defined by various command.xxx.$(file.patterns.lua) properties.
https://www.scintilla.org/SciTEDoc.html#property-command.compile
I have this set in SciTEUser.properties so Run executes the current file with SciTE's Lua interpreter:
I think you can use dostring $(CurrentSelection) to execute the current selection as Lua.
If you want to execute with an external Lua interpreter, set the appropriate subsystem (probably 0 or 2) and command line in the command properties.
"Debug" is controlled by the command.build. properties. You can inspect ahk.commands.properties for examples.
https://www.scintilla.org/SciTEDoc.html#property-command.compile
I have this set in SciTEUser.properties so Run executes the current file with SciTE's Lua interpreter:
Code: Select all
command.go.$(file.patterns.lua)=dofile $(FilePath)
command.go.subsystem.$(file.patterns.lua)=3
If you want to execute with an external Lua interpreter, set the appropriate subsystem (probably 0 or 2) and command line in the command properties.
"Debug" is controlled by the command.build. properties. You can inspect ahk.commands.properties for examples.
Who is online
Users browsing this forum: No registered users and 9 guests