Center align pre text with some DRYing

I couldn't deal with the left aligned pre and the center aligned header, so here is a pull request. I hope it is an acceptable patch.

![funny-ocd-005](https://f.cloud.github.com/assets/31338/793556/65fba33a-ec18-11e2-8156-a0e7917c4cd4.jpg)