PHP美化程序(用于格式化代码的库) [英] PHP beautifiers (libraries for formatting code)

查看:292
本文介绍了PHP美化程序(用于格式化代码的库)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前,我打算问:



你知道PHP项目的任何开源SQL格式化程序/美化程序库吗? p>

但我想,我最好问:



用PHP写的库的代码格式是最好?



让我们将它们全部列在一个地方。



我的类型:





编辑



'



通过格式化我的意思是,你可以使用PHP来编写不同的语言和语法格式化不同的语言和语法。

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:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆