Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use stackoverflow style markup on my blog posts?

I've gotten really used to the features StackOverflow provides while writing technical posts. My favorite features are the

4 spaces which you can use to indent a <pre> style code block

And the backticks you can use to format code inline, and also the automatic color syntax highlighting.

I believe the code highlighting is done via google's 'code prettify' but I'm not sure about the other formatting. It's just so easy!

How can I use this formatting on my blog?

like image 720
Steve Brown Avatar asked Jan 11 '12 18:01

Steve Brown


1 Answers

I believe StackOverflow uses pagedown. The documentation seems to sum it up pretty well with examples, including a demo.

like image 76
David Avatar answered Sep 30 '22 14:09

David