Lua Learning notepad++ settings run Lua and Python

Source: Internet
Author: User
Tags lua

First, set

Run, set cmd/k Lua "$ (full_current_path)" & PAUSE & EXIT


Second, the principle:
The meaning of cmd/k is to execute the following command, and to keep the window after execution is complete
Cmd/k Lua is equivalent to starting –> run –> 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 indicates the end of the run and waits for an arbitrary key
Exit means close the command-line window (you can omit EXIT if you use cmd/c). )


Third, error and analysis:
1. Environment variables for LUA are not set
Test: Start-and-run input cmd–> input LUA
If "Lua" is not an internal or external command, there is no environment variable configured for LUA.


2. Setting Environment variables
My Computer, advanced system settings, environment variable, select path to add Lua's bin path
Verify again that if the version information for Lua appears, the setting is successful


3. If this is set, or not, then turn off the notepad++, restart, and then set (my case is this, after the reboot will be OK)


Four, the shortcut key modification method:
1. On notepad++ Select Settings-Shortcut Mapper ..., then open the Shortcut Mapper window, I set the shortcut key is ctrl+alt+z, be careful not to conflict with other shortcut keys!

V. the same: Set Python commands

cmd/k python "$ (full_current_path)" & PAUSE & EXIT-Sava

Lua Learning notepad++ settings run 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.