sublime中安裝sublimelinter php 語法檢查

來源:互聯網
上載者:User

標籤: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 語法檢查

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.