4

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

GEOCHET
  • 20,745
  • 15
  • 72
  • 98
nixnub
  • 629
  • 1
  • 7
  • 6

3 Answers3

2

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

RivieraKid
  • 5,903
  • 4
  • 37
  • 47
DerKlops
  • 1,249
  • 1
  • 12
  • 24
2

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

Note: This has been discussed before here and here

Community
  • 1
  • 1
Adrian
  • 5,843
  • 10
  • 46
  • 68
1

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

Greg Hewgill
  • 890,778
  • 177
  • 1,125
  • 1,260