SublimeText configuration SublimeLinter for PHP code check SublimeLinter is a front-end code tool-a plug-in of Sublime Text, used to highlight the nonstandard and wrong writing methods in the code that prompts users to write, supports more than 10 development languages, including JavaScript, CSS, HTML, Java, PHP, Python, and Ruby.
Home address of SublimeLinter
Https://github.com/SublimeLinter/SublimeLinter
Install SublimeLinter
Ctrl + Shift + P call the package management tool of Sublime Text, enter SublimeLinter, and press enter to install.
Configure SublimeLinter
Open the SublimeLinter configuration file, Preferences-> Package Settings-> SublimeLinter-> Settings-User, and configure the following 1. run mode:
"Sublimelinter": "save-only ",
There are four SublimeLinter running modes, which have the following meanings:
True-real-time verification is performed in the background when the user inputs;
False-verification is performed only during initialization;
"Load-save"-verify the file when it is loaded and saved;
"Save-only"-verify the file when it is saved;
We recommend that you set it to "save-only", so that the code is verified only when the code is compiled and saved, and the Sublime Text operation will be smoother.
Verification Engine
"Sublimelinter_executable_map": {"php": "C :\\ xampp \ php \ php.exe" // use \} in windows \\}
After saving it, you can see that it is working.
[Caption id = "attachment_1052" align = "aligncenter" width = "300"]