在Sublime Text3中运行PHP代码

原文链接:https://www.cnblogs.com/Lau7/p/5433050.html


运行Sublime Text,选择Tool——>Build System——>New Build System

,在新弹出的窗体中,把默认内容({ “shell_cmd”: “make”}替换成

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

,保存在默认的目录下即可,

注意修改文件名为 php.sublime-build 。

重启sublime text,就可以用Ctrl+B来编译.php文件了

0
0
Tags:

发表回复

Your email address will not be published. Required fields are marked *.

*
*