Chemical Markup support for Wikimedia Commons/Internship Report/Stylize

You are a sloppy or lazy boy like me? Here is what I use to comply with MediaWiki's coding conventions:

Instructions for OpenSUSE.

JavaScript
Open a "sudo termal" and run

Create your configuration file with the following contents. I call it :

And beautify!

PHP
Clone the code utils:

… and run it over your code:

As a git pre-commit hook
If you are extremely sloppy about whitespace and you are not working too much with third party code (i.e. all the code is written by you), consider a pre-commit hook in your repo. It will run over all the files with amendments (and its purpose is to check for coding convention violations -- but you can use it for automated beautifying as well) before they are "committed".

In  create a hook-file called   and make it executable.

I use a modified version of http://css.dzone .com/articles/why-your-need-git-pre-commit - Just comment the line doing.
 * Implementation of  hook