PHP美化程序(用于格式化代码的库) [英] PHP beautifiers (libraries for formatting code)
问题描述
以前,我打算问:
你知道PHP项目的任何开源SQL格式化程序/美化程序库吗? p>
但我想,我最好问:
用PHP写的库的代码格式是最好?
让我们将它们全部列在一个地方。
我的类型:
- 对于CSS语法: Css Tidy
- : PEAR的PHP_Beautifier
- 的HTML语法: Tidy
编辑:
'
通过格式化我的意思是,你可以使用PHP来编写不同的语言和语法格式化不同的语言和语法。
PHP内置PHP函数来突出显示PHP语法高亮文件或highlight-string
链接: http://php.net/manual/en/function.highlight-file.php
此外,查看在 http://pastebin.com/ 和 http://pastie.org/ ,允许共享代码。
Previously, my intention was to ask:
Do you know any open source SQL formatter/beautifier library for PHP projects?
But I think, I'd better ask:
Which code formatting libraries written in PHP are the best?
Let's list them all in one place.
My types:
- for CSS syntax: Css Tidy
- for PHP: PEAR's PHP_Beautifier
- for HTML syntax: Tidy
Edit:
To clarify the question: I'm asking your opinion about code formatters written in PHP, formatting different languages and syntaxes, not only PHP source files.
By formatting I mean correcting whitespace, layout, correcting against coding standards etc., not syntax highlighting.
for PHP : inbuilt PHP function to highlight PHP syntax highlight-file or highlight-string
Link : http://php.net/manual/en/function.highlight-file.php
Also, Check out what highlighters used in sites like http://pastebin.com/ and http://pastie.org/ which allow to share code.
这篇关于PHP美化程序(用于格式化代码的库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!