ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
~~~ SublimeLinter-php ----------------- SublimeLinter-php ------------------------------- This linter plugin for SublimeLinter provides an interface to php -l. ** IMPORTANT! ** Before this plugin will activate, you *must* follow the installation instructions here: https://github.com/SublimeLinter/SublimeLinter-php ~~~ #### where php ~~~ Microsoft Windows [版本 10.0.10586] (c) 2015 Microsoft Corporation。保留所有权利。 C:\Users\amamatthew> C:\Users\amamatthew\AppData\Roaming\npm\jshint C:\Users\amamatthew\AppData\Roaming\npm\jshint.cmd C:\Users\amamatthew>where php D:\phpStudy\php\php-5.4.45\php.exe C:\Users\amamatthew> ~~~ #### 配置SublimeLinter 打开SublimeLinter的配置文件,依次点击`Preferences->Package Settings->SublimeLinter->Settings`。在打开的配置文件里,搜索paths,找到下面的windows,配置当前使用的 php 版本的绝对路径,之后重启 `SublimeLinter`: ~~~ { "default": { "debug": false, "delay": 0.25, "error_color": "D02000", "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", "gutter_theme_excludes": [], "lint_mode": "background", "mark_style": "outline", "no_column_highlights_line": false, "passive_warnings": false, "paths": { "linux": [], "osx": [], "windows": [ "D:\\phpStudy\\php\\php-5.4.45" ] }, "python_paths": { "linux": [], "osx": [], "windows": [] }, "rc_search_limit": 3, "shell_timeout": 10, "show_errors_on_save": false, "show_marks_in_minimap": true, "syntax_map": { "python django": "python", "pythonimproved": "python", "magicpython": "python", "html 5": "html", "html (django)": "html", "html (rails)": "html", "javascript (babel)": "javascript", "php": "html" }, "tooltip_fontsize": "1rem", "tooltip_theme": "Packages/SublimeLinter/tooltip-themes/Default/Default.tooltip-theme", "tooltip_theme_excludes": [], "tooltips": false, "warning_color": "DDB700", "wrap_find": true } } ~~~ 安装指南: http://blog.csdn.net/qq_29945729/article/details/53126887