~~~
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