views:

85

answers:

1

I use a text editor and the commandline for my Java development. I use Artistic Style to format my Java code. I'm looking for a tool that can be run from the commandline that can format JSP pages as well as XML config files such as those used by Spring.

A: 

It's not a command-line solution, but Vim (and consequently gVim) does a pretty good job at pretty-printing. I use it all the time to get a first-pass at formatting unreadable code.

jheddings