5290589 发表于 2017-3-21 09:08:28

Sublime TexT 3 SublimeLinter For php 配置 php-fpm 配置

  Sublime Text 3 的确是比2 有提升不少,前期鉴于缺少各种插件,没有使用,近期开始使用。发现对于 SublimeLinter 的使用有很大变化,写在这里记录下。
  1 需要的package: SublimeLinter + SublimeLinter-php
  2 配置:
      Preference > Package-Settings >SublimeLinter > Settings-User:
     添加了php_paths: windows[]的配置。

{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"php": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"php_paths": {
"linux": [],
"osx": [],
"windows": [
"D:\\xampp\\php"
]
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": true,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
   
  php-fmt 配置:

{
"format_on_save": true,
"passes":
[
],
"php55warning": true,
"php_bin": "d:/Program Files/wamp/wamp/bin/php/php5.5.12/php.exe",
"psr1": false,
"psr2": true,
"version": 3
}
页: [1]
查看完整版本: Sublime TexT 3 SublimeLinter For php 配置 php-fpm 配置