這篇文章主要介紹“sublime如何搭建php”的相關(guān)知識(shí),小編通過(guò)實(shí)際案例向大家展示操作過(guò)程,操作方法簡(jiǎn)單快捷,實(shí)用性強(qiáng),希望這篇“sublime如何搭建php”文章能幫助大家解決問(wèn)題。
創(chuàng)新互聯(lián)公司專注于海州網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠(chéng)為您提供海州營(yíng)銷型網(wǎng)站建設(shè),海州網(wǎng)站制作、海州網(wǎng)頁(yè)設(shè)計(jì)、海州網(wǎng)站官網(wǎng)定制、小程序定制開(kāi)發(fā)服務(wù),打造海州網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供海州網(wǎng)站排名全網(wǎng)營(yíng)銷落地服務(wù)。
sublime搭建php的方法:1、打開(kāi)sublime,點(diǎn)擊“Ctrl+Shift+P”,再輸入install;2、配置SublimeLinter;3、修改路徑;4、配置php編譯系統(tǒng);5、添加“{ "cmd":["php","$file"],"file_regex": "php$","selector":"source.php"}”即可。
sublime3配置php環(huán)境
最后的演示效果:
1. 按照sublime3開(kāi)始前的準(zhǔn)備工作
Ctrl+Shift+P,再輸入install,最后再輸入想要安裝的軟件 (輸入install會(huì)有幾十秒的延遲,請(qǐng)不要重復(fù)操作)
配置php環(huán)境,目前只需要配置兩個(gè),首先配置SublimeLinter
先安裝好SublimeLinter,再進(jìn)入下面的步驟(如果不懂英語(yǔ)翻譯中文那么就去翻譯)
Settings-User
直接拷貝下面的代碼上去即可,修改一下31和45行的路徑即可(記得全部拷貝?。?/p>
{
"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": {
"csslint": {
"@disable": false,
"args": [],
"errors": "",
"excludes": [],
"ignore": "",
"warnings": ""
},
"php": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": [
"F:\\tomcat\\php\\php.exe"
]
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"sublimelinter": "save-only",
"sublimelinter_executable_map": {
"php": "F:\\tomcat\\php\\php.exe"
},
"syntax_map": {
"coffeescript (gulpfile)": "coffeescript",
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"javascript (eslint)": "javascript",
"javascript (gruntfile)": "javascript",
"javascript (gulpfile)": "javascript",
"javascript (postcss)": "javascript",
"javascript (stylelint)": "javascript",
"javascript (webpack)": "javascript",
"json (babel)": "json",
"json (bower)": "json",
"json (composer)": "json",
"json (eslint)": "json",
"json (npm)": "json",
"json (postcss)": "json",
"json (settings)": "json",
"json (stylelint)": "json",
"json (sublime)": "json",
"json (tern js)": "json",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python",
"xml (config)": "xml",
"xml (svg)": "xml",
"yaml (circleci)": "yaml",
"yaml (docker)": "yaml",
"yaml (eslint)": "yaml",
"yaml (lock)": "yaml",
"yaml (procfile)": "yaml",
"yaml (stylelint)": "yaml",
"yaml (yarn)": "yaml"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
好了,再說(shuō)配置php 編譯系統(tǒng)的事情
一張圖闡釋配置系統(tǒng)環(huán)境
默認(rèn)是有php的,不管你信不信,反正我是信了,來(lái),說(shuō)說(shuō)配置php的編譯系統(tǒng)吧?。?!
先把里面的內(nèi)容刪除!
再加入以下代碼:
{
"cmd":["php","$file"],"file_regex":
"php$","selector":"source.php"
}
重命名為:php.sublime-build,最后保存即可,這是我們就可以在編譯系統(tǒng)看見(jiàn)php了,這時(shí)我們?cè)俟催x上即可。
關(guān)于“sublime如何搭建php”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí),可以關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,小編每天都會(huì)為大家更新不同的知識(shí)點(diǎn)。