梦想 就像鸡蛋
要么孵化 要么臭掉
要么孵化 要么臭掉
PHP源代码格式化系统
Made In Zeal 转载请保留原始链接:http://www.zeali.net/entry/163
标签 ( Tags ): 工具
对于写代码不喜欢排格式,或者需要去读别人留下的一堆写的极其丑陋的代码的程序员来说,可以试试 Beautify PHP 带给你的便利。这个系统还可以把源代码的函数自动整理到文件的头部作为注释,很实用的一个功能。以前一直觉得JBuilder的代码Reformat功能很酷,看来PHP也可以看上去很美俄。
Who needs it:
- people, who get PHP code from other coders and are slightly confused
- people, who can't read their own PHP code anymore
- people, who want to share their PHP code
Basic features:
- automatic indentation of PHP source code according to given number of spaces
- automatic newlines, if required
- includes settings for braces according to C or PEAR style
- can make use of PHPs integrated code highlight option
- can limit number of chars per line. This will break the code at a space and outputs the rest on the next line with an additional indent. (I used this to reformat my code to put it in a LATEX document. This PHP code normally can't be executed anymore, it is only useful for printout.)
- turn off and on beautifying by inserting "// NO_BEAUTIFY" or "// BEAUTIFY" in source code
This Entry was Last Modified on 2007-05-25 22:32
没有评论.
发贴统计

我的地盘