Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stack Overflow formatting for Wordpress

I've become so accustomed to stack overflow style formatting that I find it a hassle to format things manually in HTML anymore - specifically for blog posts.

Is there anything enabling stack overflow style formatting for word press?

Something akin to the markdown plugin for wordpress - http://wordpress.org/extend/plugins/markdown-for-wordpress-and-bbpress/

Also, I'm not sure if this is meta enough for it to belong on meta overflow

like image 380
Jamie Wong Avatar asked Jun 30 '10 05:06

Jamie Wong


1 Answers

You want to use the Code Block Enabler plugin which encapsulates Google Prettify which is the same code formatter that Stack Overflow uses. Once you have turned that on simply alter the CSS for prettify to match the Stack Overflow colors. (Shameless plug: I did the same thing myself on my blog because I liked the formatting here as well).

like image 90
Andrew Hare Avatar answered Oct 25 '22 16:10

Andrew Hare