php代码格式化--EditPlus插件

作者:matrix 被围观: 3,957 次 发布时间:2014-01-12 分类:零零星星 | 无评论 »

这是一个创建于 3755 天前的主题,其中的信息可能已经有所发展或是发生改变。

美化php代码较为麻烦,没有像js那样的方便。目前就找到这个方法能用到。

需要准备EditPlus以及其插件phpCB。

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之后找到菜单栏:

工具>参数设置>用户工具>添加工具>应用程序,再填写对应信息

安装EditPlus之后找到菜单栏

菜单文本: 任意

命令:点击右边的小按钮选择之前准备的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)

动作:运行为 文本过滤器(替换)

填写信息

确定保存。

使用的时候按Ctrl+1便是。

 

参考:http://hi.baidu.com/fanglor/item/6f988d41e859e9a961d7b991

http://blog.csdn.net/lele9001/article/details/12676115

其他文章:
本文固定链接:https://www.hhtjim.com/the-php-code-formatting-editplus-plug-in.html
matrix
本文章由 matrix 于2014年01月12日发布在零零星星分类下,目前没有通告,你可以至底部留下评论。
转载请注明:php代码格式化--EditPlus插件-HHTjim'S 部落格
关键字:, , ,

添加新评论 »

 🙈 😱 😂 😛 😭 😳 😀 😆 👿 😉 😯 😮 😕 😎 😐 😥 😡 😈 💡

插入图片

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!