views:

6152

answers:

11

What are the best online Code Beautifier And Formatter out there? I'm not asking for highlighters. Any language will do.

+5  A: 

For SQL I like SQLinForm.

Node
Yes, that is a great tool
Tim Boland
+3  A: 

What language?? There are different tools for almost every imaginable programming language, since they all have different syntactic rules and conventions.

Good ol' indent is a nice, customizable, command-line utility to format C and C++ programs.

Dan
+6  A: 

I've used Quick Highlighter a lot. Works great for a huge list of languages.

AdamC
+2  A: 
VonC
+2  A: 
balexandre
+1  A: 

JsonLint is good for validating and formatting JSON.

johnstok
A: 

There's Highlight for C++.

spoulson
+5  A: 

For PHP, Java, C++, C, Perl, JavaScript, CSS you can try:

http://www.prettyprinter.de/index.php

QAZ
+1  A: 

You can use Perl::Tidy for Perl.

brian d foy
Are you sure ? "perl and tidy". I am not accustomed to see those words together. [-)
TheMachineCharmer
Yes I am sure. Maybe you are not accustomed to seeing the two together, but maybe you should also consider hanging out with a higher class of people. :)
brian d foy
+1  A: 

Try the web tool Pretty Diff directly in your browser.

http://mailmarkup.org/prettydiff/prettydiff.html

This is the only one in these answers that works for formatting HTML. Thanks.
Hosam Aly
A: 

i prefer this http://www.phpformatter.com/

streetparade