I don't know if this is helpful for moderators but I've put together a code formatter in dotnet which automatically beautifies someone's code.
Numerous times you will see newbies posting without code tags. Now the moderators can easily quote the post so the indentation is preserved, but sometimes the posters do not even indent their code or use tabs instead of spaces.
The main exe is called CFormat.
Dotnet 2.0 is required, only works on windows although I guess I could write one for linux.
Any questions... Post them here.
It also, removes comments as well (if necessary) and uses dotnets regex utility.
It uses the Astyle engine to do the beautifying and can be customized in the