作者:matrix 被围观: 2,678 次 发布时间:2014-01-12 分类:零零星星 | 无评论 »
这是一个创建于 3154 天前的主题,其中的信息可能已经有所发展或是发生改变。
美化php代码较为麻烦,没有像js那样的方便。目前就找到这个方法能用到。
EditPlus 代码编辑的软件(貌似EditPlus 的可扩展性非常强) 百度网盘:http://pan.baidu.com/s/1hqwrR5i pc6:http://www.pc6.com/softview/SoftView_36775.html EditPlus 的插件phpCodeBeautifie。 百度网盘:http://pan.baidu.com/s/1gd63rUV 官方页 :http://www.waterproof.fr/products/phpCodeBeautifier/download.php
工具>参数设置>用户工具>添加工具>应用程序,再填写对应信息
菜单文本: 任意
命令:点击右边的小按钮选择之前准备的EditPlus插件 phpcb.exe
参数:
--space-after-if --glue-arrow --optimize-eol --space-after-switch --space-after-while --space-before-start-angle-bracket --one-true-brace-function-declaration --one-true-brace --extra-padding-for-case-statement --glue-amperscore --change-shell-comment-to-double-slashes-comment --indent-with-tab --force-large-php-code-tag --force-true-false-null-contant-lowercase --comment-rendering-style PEAR --equal-align-position 50 --padding-char-count 1 "$(FilePath)"
起始目录:$(FileDir)
动作:运行为 文本过滤器(替换)
确定保存。
参考:http://hi.baidu.com/fanglor/item/6f988d41e859e9a961d7b991