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