tags:

views:

112

answers:

3

Is there a windows program to automatically indent/tidy up PHP source code?

A: 

This type of tool is generically called a "Pretty Printer". A quick Google search shows many options for PHP source code.

Greg Hewgill
+2  A: 

Have a look at PHP_Beautifier. The package contains a .bat so you can run it from your dosprompt.

DerKlops
+1  A: 

Eclipse PDT has a "Code Format" feature (Ctrl+Shift+F)

Note: This has been discussed before here and here

Adrian