sublime3配置php環境


最后的演示效果:

 

 

1. 按照sublime3開始前的准備工作

Ctrl+Shift+P,再輸入install ,最后再輸入想要安裝的軟件 (輸入install會有幾十秒的延遲,請不要重復操作)

 

 配置php環境,目前只需要配置兩個,首先配置SublimeLinter

 


先安裝好SublimeLinter ,再進入下面的步驟(如果不懂英語翻譯中文那么就去翻譯)

 

 Settings-User

 

 

直接拷貝下面的代碼上去即可,修改一下3145行的路徑即可(記得全部拷貝!)

 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             "csslint": {
11                 "@disable": false,
12                 "args": [],
13                 "errors": "",
14                 "excludes": [],
15                 "ignore": "",
16                 "warnings": ""
17             },
18             "php": {
19                 "@disable": false,
20                 "args": [],
21                 "excludes": []
22             }
23         },
24         "mark_style": "outline",
25         "no_column_highlights_line": false,
26         "passive_warnings": false,
27         "paths": {
28             "linux": [],
29             "osx": [],
30             "windows": [
31                 "F:\\tomcat\\php\\php.exe"
32             ]
33         },
34         "python_paths": {
35             "linux": [],
36             "osx": [],
37             "windows": []
38         },
39         "rc_search_limit": 3,
40         "shell_timeout": 10,
41         "show_errors_on_save": false,
42         "show_marks_in_minimap": true,
43         "sublimelinter": "save-only",
44         "sublimelinter_executable_map": {
45             "php": "F:\\tomcat\\php\\php.exe"
46         },
47         "syntax_map": {
48             "coffeescript (gulpfile)": "coffeescript",
49             "html (django)": "html",
50             "html (rails)": "html",
51             "html 5": "html",
52             "javascript (babel)": "javascript",
53             "javascript (eslint)": "javascript",
54             "javascript (gruntfile)": "javascript",
55             "javascript (gulpfile)": "javascript",
56             "javascript (postcss)": "javascript",
57             "javascript (stylelint)": "javascript",
58             "javascript (webpack)": "javascript",
59             "json (babel)": "json",
60             "json (bower)": "json",
61             "json (composer)": "json",
62             "json (eslint)": "json",
63             "json (npm)": "json",
64             "json (postcss)": "json",
65             "json (settings)": "json",
66             "json (stylelint)": "json",
67             "json (sublime)": "json",
68             "json (tern js)": "json",
69             "magicpython": "python",
70             "php": "html",
71             "python django": "python",
72             "pythonimproved": "python",
73             "xml (config)": "xml",
74             "xml (svg)": "xml",
75             "yaml (circleci)": "yaml",
76             "yaml (docker)": "yaml",
77             "yaml (eslint)": "yaml",
78             "yaml (lock)": "yaml",
79             "yaml (procfile)": "yaml",
80             "yaml (stylelint)": "yaml",
81             "yaml (yarn)": "yaml"
82         },
83         "warning_color": "DDB700",
84         "wrap_find": true
85     }
86 }

 

好了,再說配置php 編譯系統的事情

 

一張圖闡釋配置系統環境

 

默認是有php的,不管你信不信,反正我是信了,來,說說配置php的編譯系統吧!!!

 

先把里面的內容刪除

 

再加入以下代碼:

{
    "cmd":["php","$file"],"file_regex":
    "php$","selector":"source.php"
}

 

 

重命名為:php.sublime-build,最后保存即可,這是我們就可以在編譯系統看見php了,這時我們再勾選上即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM