notepad++ directly run Python, Perl, C, etc.

Source: Internet
Author: User

Run (F5), enter the command and save

python " $ (Full_current_path) " & ECHO. & PAUSE & EXIT


   /k is followed by commands similar to cmd, such as Python, Perl, etc. (environment variables are already configured, otherwise a full path is required, such as: C:\Python34\python.exe)

$ (Full_current_path) notepad++ macro definition, meaning the full path to the current file
   
ECHO. (or echo\) print line break

Exit is to exit CMD. EXE Program (Command interpreter)

Pause pauses processing of batch files and displays messages.

C, C + + compile and run, similar to

cmd/k gcc-o "$ (current_directory) \$ (name_part).exe" "$ (Full_current_path)" && CLS && "$ (current_directory) \$ (name_part).exe" & PAUSE & EXIT

cmd/k C + +-o "$ (current_directory) \$ (NAME). exe" "$ (Full_current_path)" && CLS && "$ (current_ DIRECTORY) \$ (NAME).exe"& PAUSE & EXIT

  

Java compiles and runs

cmd/k javac "$ (full_current_path)" && CLS && CD "$ (current_directory)" && Java "$ (Name_part)" & PAUSE & EXIT

notepad++ directly run Python, Perl, C, etc.

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.