4.6.10. Running Lua

Depending on what exactly we want to achieve, here are the two NppExec's scripts that can be used to run Lua:

// Lua in NppExec's Console
set local Lua = C:\Lua\bin\lua.exe // <-- specify your path to Lua here!
npp_save // saves the current .lua file
"$(Lua)" "$(FULL_CURRENT_PATH)" // runs it

and

// Lua in a separate console window
set local Lua = C:\Lua\bin\lua.exe // <-- specify your path to Lua here!
npp_save // saves the current .lua file
npp_run cmd /c ""$(Lua)" "$(FULL_CURRENT_PATH)" && pause" // runs it