How to run a lua script in scite?

The popular SciTE-based AutoHotkey Script Editor
cgx5871
Posts: 315
Joined: 26 Jul 2018, 14:02

How to run a lua script in scite?

27 Feb 2024, 23:34

image.png
image.png (7.51 KiB) Viewed 159 times
When I open a lua script
I see the menu is gray.
Where is this controlled?
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: How to run a lua script in scite?

31 Mar 2024, 21:18

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.

Return to “SciTE4AutoHotkey”

Who is online

Users browsing this forum: No registered users and 77 guests