1 安装pear
2 pear 安装 php beautifier
pear install --alldeps PHP_Beautifier-0.1.15
3 修改\php\pear\PHP\Beautifier\Filter\
Pear.filter.php
phpBB.filter.php
注释掉 require_once ('PEAR/Config.php');
4 安装插件
phpbeautifier
5 修改
Sublime Text 2.0.2 x64\Data\Packages\PhpBeautifier\php_beautifier.py
cmd = "php_beautifier" 修改为 cmd = "php_beautifier.bat"
\php\php_beautifier 中 修改
error_reporting(E_ALL || ~E_NOTIC);
6 重启客户端使用吧 ctrl+alt +F | command line :Format:Php
本文详细介绍如何安装并配置PHP Beautifier工具来美化PHP代码。步骤包括安装PEAR、通过PEAR安装PHP Beautifier、修改核心文件及配置Sublime Text 2等。
3万+

被折叠的 条评论
为什么被折叠?



