Page 1 of 1
How to run a lua script in scite?
Posted: 27 Feb 2024, 23:34
by cgx5871
- image.png (7.51 KiB) Viewed 407 times
When I open a lua script
I see the menu is gray.
Where is this controlled?
Re: How to run a lua script in scite?
Posted: 31 Mar 2024, 21:18
by lexikos
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:
Code: Select all
command.go.$(file.patterns.lua)=dofile $(FilePath)
command.go.subsystem.$(file.patterns.lua)=3
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.