标签:als pack 打开 tool alt packages 脚本 osx 红点
打开控制台,install package
搜 sublimelinter
先安装sublimelinter本体
安装完以后再搜索一下,安装sublimelinter-php
接下来,打开preferences-package settings-sublimeLinter-settings--user
如下配置:
1 {
2 "user": {
3
4 "linters": {
5
6 },
7
8 "paths": {
9 "linux": [],
10 "osx": [],
11 "windows": [
12 "D:\\xampp\\php"
13 ]
14 },
15
16 }
17 }
就是添加一下 paths的参数值,指定一下你本地php目录。
然后关闭sublime,再次打开一个php脚本,试试吧。
有错误的地方在行号上会有红点提示在代码上会有红色方框,鼠标放红色方框上,错误信息在编辑器底部状态栏显示。
配置文件:
1 {
2 "user": {
3 "debug": false,
4 "delay": 0.25,
5 "error_color": "D02000",
6 "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
7 "gutter_theme_excludes": [],
8 "lint_mode": "background",
9 "linters": {
10 "php": {
11 "@disable": false,
12 "args": [],
13 "excludes": []
14 }
15 },
16 "mark_style": "outline",
17 "no_column_highlights_line": false,
18 "passive_warnings": false,
19 "paths": {
20 "linux": [],
21 "osx": [],
22 "windows": [
23 "D:\\wamp\\bin\\php\\php5.4.16\\php.exe"
24 ]
25 },
26 "python_paths": {
27 "linux": [],
28 "osx": [],
29 "windows": []
30 },
31 "rc_search_limit": 3,
32 "shell_timeout": 10,
33 "show_errors_on_save": false,
34 "show_marks_in_minimap": true,
35 "syntax_map": {
36 "html (dj
sublime中安装sublimelinter php 语法检查
标签:als pack 打开 tool alt packages 脚本 osx 红点
原文地址:http://www.cnblogs.com/phonecom/p/6972263.html