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.