notepad++ settings execute LUA and python

Source: Internet
Author: User
Tags lua

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.