Today I tried to run Python and C and Java on Notepad, and Daoteng a long time to finally succeed.
Running Python on 1.notepad
First you need to install a plugin: nppexec,
: https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20v0.5.3/
After download, move the NppExec.dll file inside to the notepad++ plugins directory: My is: C:\Program files (x86) \notepad++\plugins
This allows you to see the nppexec in the plugin options.
The shortcut key F6 opens the Excute window
Add the above command to the inside:
Npp_save
C:\Users\zhuxueming\AppData\Local\Programs\Python\Python36-32\python.exe "$ (Full_current_path)"
The Python program is called before, followed by the program's path and program name, which is equivalent to the Python xxx.py under the cmd command. This will output the information to the console.
The absolute path of Python is used here, so there is no need to configure environment variables, although I have already configured the environment variables but run directly or not, so use absolute path.
2. Run C on the noteopad++
Similar to Python configuration, except that the C language needs to be compiled first, so you need to configure a path
Configuration:
C:\MinGW\bin\gcc.exe-o $ (name_part). exe $ (full_current_path) # Compile: Gcc-o followed by the compiled file name, or unified as a.exe. The second is the file path, and be careful not to add "".
"$ (Name_part)". exe #执行 execute the current file directly
3.notepad++ run Java and C basically the same
Npp_save
C:\Program Files (x86) \java\jdk1.8.0_71\bin\javac.exe "$ (full_current_path)" #编译
C:\Program Files (x86) \java\jdk1.8.0_71\bin\java.exe "$ (name_part)" #执行
Such a notepad++ can run a lot of languages, very convenient, very light weight
How to configure Python C and Java on notepad++