How to configure Python C and Java on notepad++

Source: Internet
Author: User

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++

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.