Zeal Blog - 泽欧里
梦想 就像鸡蛋
要么孵化 要么臭掉
WWW Zeal Blog

PHP源代码格式化系统

zeal 2005-09-02 15:45 于 PHP , 1049 字 |  + 1 - 0   English
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
引用本文(TrackBack): 此功能无限期关闭ing ... 如有引用请在文中标明出处并提供超链接  
没有评论.
对于这篇日志您有什么想法?我想听听您的高见。
如果您不是没有思想的机器Spammer,请告诉我 4 + 8 =
然后任选以下两种方式之一告诉我您的身份:
1. 使用您的 OpenID
2. 使用传统留言格式
(必填) 名字
如何称呼您?
(选填) URL
在此填写您的 Blog / Homepage 的地址,我将非常乐于访问
(选填) Email
Email地址将在经过防SPAM处理后显示在页面。如果您不希望公开自己的Email,请略过此栏
并写下您的见解:
(由于需要进行SPAM过滤,如果评论提交速度慢请耐心等待)
记住我?

  如何进行评论                   当有新回复时给我发送邮件通知
除了 <b> 和 <i> 之外,其他的HTML标签都将从您的评论中去除. URL 或 Email 地址会被自动加上链接.
当您点击发表或者预览之后,系统会自动保存您此次评论的内容,以便当网络原因发表失败时直接按Ctrl-V重新粘贴上次评论内容。
注意:快捷键及自动拷贝功能仅对IE浏览器有效。
发贴统计

Tot 622/1369

日志存档
2008年
2007年
2006年
本 Blog 原创内容
遵循以下授权:

Creative Commons
(创作共用) CC

署名-非商业性
-相同方式分享
Zeal Blog 基于
Powered byPivot - 1.24.1: 'Arcee'
Pivot1.24.1
开发
Launched @
2005-04-27
 里,居也。——《说文》    里,邑也。——《尔雅》。李注:“居之邑也。”沪ICP备05024379号 Back To Home All Links Loading