@ZEAL Blog·厉
We stand alone,
TOGETHER.

PHP源代码格式化系统

Posted by zeal on 2005-09-02 15:45 , 1049 characters |  + 1 - 0   English
转载请保留本行原始出处声明信息 : http://www.zeali.net/entry/163 MaDe1nZEAL
标签 ( PHP ):

对于写代码不喜欢排格式,或者需要去读别人留下的一堆写的极其丑陋的代码的程序员来说,可以试试 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
Last Modified on 2007-05-25 22:32
没有评论.
Since 2005.04.27  梦想 就像鸡蛋 要么孵化 要么臭掉RSS Feed (Entries) | Back To Home | @ZEAL | 沪ICP备05024379号