1. Create PHP compiling system
<1> Configure system environment variables
In the environment variable set inside, find the system variable-path, add "C:\PHP" at the end; You can <2> add a compilation system to the sublime
Tool-build system-new Build System ...
Replace the default content with the following:
{" cmd": ["PHP", "$file"], "File_regex": "php$", "selector": "Source.php"}
Then save it in the default path and change the file name to
Php-sublime-buildReboot Sublime, use ctrl+b to compile PHP file
2, SublimelinterA code error hint plug-in, support Js,css,html,java,php,python,ruby, etc.
<1> install with a Package management tool (package control), how the package management tool itself is installed in another Bovenrio introduction:
http://blog.csdn.net/wzj0808/article/details/51671841
after the <2>sublimelinter installation is complete, make the following settings:Open preferences->package Settings->sublimelinter->settings-user: Input:-run mode settings
"Sublimelinter": "Save-only",
Sublimelinter operating mode, a total of four kinds, the meaning is as follows:
True-instantly checks in the background when the user enters;
False-checksums are only performed at initialization time;
"Load-save"-Verify when the file is loaded and saved;
"Save-only"-Checks when the file is saved;
Recommended set to "Save-only", so that only after writing code, save the time to verify, Sublime Text running will be more fluent.
-Calibration Engine
"Sublimelinter_executable_map":
{"
php": "C:\\php\\php.exe" //Windows to use \
}
3, PhpcsPHP syntax hints, same with package management tool installation