Given a directory containing a source tree, is there a simple way from command-line to replace each source file with its beautifully reformatted equivalent?
Keep in mind that usually a source tree for a project also contains files which are not source, and the sources themselves could be in different languages.
I'm looking for some tool that supports as many languages as possible, because a project usually contains sources in many different languages. In particular, I'd be looking for something supporting xml/html, javascript, ruby, and java.