zoukankan      html  css  js  c++  java
  • sublime中安装sublimelinter php 语法检查

    打开控制台,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 
    复制代码
  • 相关阅读:
    dfs模板(真心不会深搜)
    背包九讲文档
    POJ3414—Pots(bfs加回溯)
    统计元音
    前m大的数(哈希入门)&&sort
    数据结构实验:哈希表
    More is better
    畅通工程&&How Many Tables
    OpenCV学习:Mat结构中的数据共享机制
    VC++ :实现简单的文件拖放(Drag and Drop)功能
  • 原文地址:https://www.cnblogs.com/phonecom/p/6972263.html
Copyright © 2011-2022 走看看