4

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

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
nixnub
  • 659
  • 1
  • 7
  • 7

3 Answers3

2

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

RivieraKid
  • 5,923
  • 4
  • 38
  • 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
  • 6,013
  • 10
  • 47
  • 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
  • 951,095
  • 183
  • 1,149
  • 1,285