~~~
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
- 目录
- 教程
- 问答
- 设置
- 快捷键
- 插件管理
- 安装包( PackageControl )
- 插件
- 语法
- SublimeLinter
- SublimeLinter-jshint
- SublimeLinter-php
- SublimeLinter-phplint
- SublimeLinter-phpmd
- SublimeLinter-phpcs
- 注释
- DocBlockr
- 排版
- HTML-CSS-JS Prettify
- phpfmt
- 模版
- SublimeTmpl
- ExtJS
- 安装
- 翻译
- ChineseLocalizations
- 辅助
- SideBarEnhancements
- Bracket Highlighter
- auto-save
- Color Highlighter
- ColorPicker
- 上传
- sftp
- 提示
- PhpNinJaManual
- 版本
- Git
- TortoiseSVN
- 框架插件
- PHP开发
- 编译系统
- 注释插件
- 代码片段
- Pretty Json
- 系统菜单
- 分屏
- 空格缩进
- 中文版
- brew