notepad++ Settings Execute lua and Python
First, set
Settings, runcmd/k Lua "$ (full_current_path)" & PAUSE & EXIT
Second, the principle:
The meaning of cmd/k is to run the following command, and keep the form after the run is complete
Cmd/k Lua is equivalent to starting –> execution –> input cmd–> input LUA
$ (full_current_path) means the full path of the current file, which is the notepad++ macro definition & is a connection to multiple commands
Pause after execution ends, waiting for a random button
Exit means close the command-line form (assuming that you can omit EXIT by using cmd/c).
)
Third, error and analysis:
1. Environment variables for LUA are not set
Test: Input cmd–> input LUA, start-to-run
If "Lua" is not an internal or external command, there is no environment variable configured for LUA.
2. Environment variable Settings
My Computer, advanced system settings, environment variable, select path to add Lua's bin path
Again, assuming that the version number information for LUA indicates that the setup was successful
3. Suppose this is set up clearly. Or not, then turn off the notepad++ and start again. Set it up again (that's what I'm going to do, and I'll be able to reboot)
Four, the shortcut key change method:
1. On notepad++, select Settings, Shortcut Mapper ... to open the Shortcut Mapper form:
V. the same: Set Python commands
cmd/k python "$ (full_current_path)" & PAUSE & EXIT-Sava
notepad++ settings execute LUA and python