Use sublime to write some configuration before python, PHP code

Source: Internet
Author: User
1. Writing Python code using sublime

Open the Sublime software,tools-> build system-> New build System, and get the file with the suffix "sublime-build" replaced by the following: {"cmd": ["F:/softwares/pyth On27/python.exe ","-U "," $file "],
"File_regex": "^[]file \" (...?) \ ", line ([0-9]*)", "selector": "Source.python"

}

Then save as Python3.sublime-build, the file is saved by default to the sublime custom folder user.

Note: "F:/softwares/python27/python.exe" is the installation path of their own Python3, which should be set according to their actual situation

Then click Tools-> Build System again in the menu bar and tick Python3. When you are done with the above settings, if you want to run a python file, click Tools-> Build in the menu bar to see the results of the program running.

2. Writing PHP code using sublime

① Adding a PHP path to the PATH environment variable

②, just change the content to:

{"cmd": ["PHP", "$file"], "File_regex": "php$", "selector": "Source.php"} and Save as Php.sublime-build

Use sublime to write some configuration before python, PHP code

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.