在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文件了

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注