{ // Path to php on windows installation // This is needed as we cannot run phars on windows, so we run it through php "phpcs_php_prefix_path": "C:\\wamp\\bin\\php\\php5.4.12\\php.exe", // This is the path to the bat file when we installed PHP_CodeSniffer "phpcs_executable_path": "C:\\wamp\\bin\\php\\php5.4.12\\phpcs.bat", // PHP-CS-Fixer settings // Don't want to auto fix issue with php-cs-fixer "php_cs_fixer_on_save": false, // Show the quick panel "php_cs_fixer_show_quick_panel": true, // The fixer phar file is stored here: "php_cs_fixer_executable_path": "C:\\wamp\\bin\\php\\php5.4.12\\php-cs-fixer.phar", // PHP Linter settings // Yes, lets lint the files "phpcs_linter_run": true, // And execute that on each file when saved (php only as per extensions_to_execute) "phpcs_linter_command_on_save": true, // Path to php "phpcs_php_path": "C:\\wamp\\bin\\php\\php5.4.12\\php.exe", // This is the regex format of the errors "phpcs_linter_regex": "(?P<message>.*) on line (?P<line>\\d+)", // PHP Mess Detector settings // Not turning on the mess detector here "phpmd_run": false, "phpmd_command_on_save": false, "phpmd_executable_path": "", "phpmd_additional_args": {} }重启Sublime Text 3,打开php程序,语法错误提示如下图:
相关学习推荐:PHP编程从入门到精通
以上就是Sublime Text 3如何配置php语法错误提示插件?的详细内容!
Sublime Text 3如何配置php语法错误提示插件?
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《Sublime Text 3如何配置php语法错误提示插件?》
文章链接:https://www.admin99.cn/4541
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
QQ站长交流群:953950264
文章名称:《Sublime Text 3如何配置php语法错误提示插件?》
文章链接:https://www.admin99.cn/4541
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
QQ站长交流群:953950264