资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

sublime如何搭建php

这篇文章主要介绍“sublime如何搭建php”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“sublime如何搭建php”文章能帮助大家解决问题。

创新互联公司专注于海州网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供海州营销型网站建设,海州网站制作、海州网页设计、海州网站官网定制、小程序定制开发服务,打造海州网络公司原创品牌,更为您提供海州网站排名全网营销落地服务。

sublime搭建php的方法:1、打开sublime,点击“Ctrl+Shift+P”,再输入install;2、配置SublimeLinter;3、修改路径;4、配置php编译系统;5、添加“{ "cmd":["php","$file"],"file_regex": "php$","selector":"source.php"}”即可。

sublime3配置php环境

最后的演示效果:

sublime如何搭建php

1. 按照sublime3开始前的准备工作

Ctrl+Shift+P,再输入install,最后再输入想要安装的软件 (输入install会有几十秒的延迟,请不要重复操作)

sublime如何搭建php

配置php环境,目前只需要配置两个,首先配置SublimeLinter


先安装好SublimeLinter,再进入下面的步骤(如果不懂英语翻译中文那么就去翻译)

sublime如何搭建php

Settings-User

sublime如何搭建php

直接拷贝下面的代码上去即可,修改一下31和45行的路径即可(记得全部拷贝!)

{
    "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
    }
}

好了,再说配置php 编译系统的事情

一张图阐释配置系统环境

sublime如何搭建php

默认是有php的,不管你信不信,反正我是信了,来,说说配置php的编译系统吧!!!

sublime如何搭建php

先把里面的内容删除

sublime如何搭建php

再加入以下代码:

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

sublime如何搭建php

重命名为:php.sublime-build,最后保存即可,这是我们就可以在编译系统看见php了,这时我们再勾选上即可。

关于“sublime如何搭建php”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注创新互联行业资讯频道,小编每天都会为大家更新不同的知识点。


分享文章:sublime如何搭建php
网页路径:http://cdkjz.cn/article/ipecgh.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220