views:

220

answers:

2

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.

+1  A: 

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.

Sairam Kunala
A: 

http://qbnz.com/highlighter/

micrub
Geshi is a syntax highligher, not code formatter.
takeshin