Notepad ++ can be used with command lines to build various programming environments

Source: Internet
Author: User

The command to open the browser is

C: \ Users \ Administrator \ appdata \ Local \ google \ chrome \ Application \ chrome.exe $ (current_directory)/$ (file_name)

We all know that in Notepad ++, you can run some external programs by using commands, or compile programs, and use Notepad ++ as a lightweight IDE. I used to post an article that briefly introduced how to use Notepad ++ as a development tool such as PHP, Java, and C. In fact, the principle is very simple.

1. Install the nppexec plug-in

2. Go to the directory where the current file is located (taking php as an example) CD "$ (current_directory )"

3. Let PHP explain the current file D: \ Program Files \ vertrigoserv \ PHP \ php.exe "$ (file_name )"

In the program below, it is very simple to use F6.

However, the key issue is that many people do not know the built-in constants notepad ++, such as current_directory and file_name used above.

In fact, if you carefully check the help manual, you will find it.

Next I will tell you where it is in the manual.

Press SHIFT + F1 to open the notepad ++ help document, find run commands on the Directory tab, open it, and read it carefully. The following constant is displayed:

Full_current_path
Complete path of the current document
Current_directory
Directory of the current document
File_name
Name of the current document (excluding the path)
Name_part
Name of the current document (excluding the extension)
Ext_part
Current document Extension

Npp_director

Notepad ++ executable file directory

Current_word
Currently selected words in the document
Current_line
Current row selected in the document (starting from 0, the first row is 0)
Current_column

Current column selected in the document (starting from 0, the first column is 0)

That's all. You should know how to use it.

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.