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

574 views Asked by At

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?

1

There are 1 answers

0
David On BEST ANSWER

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