Use hilite.me to pretty print
- Visit http://hilite.me/
- Select "vim" style and turn on line numbering
- Press the
- Click into the HTML window and copy the code
- Come back to your blog post and paste the code into where you like it
Fiddle the Style Sheet.
There are some overriding styles that effect the final output. So we need a little override here. Add this style to just above your code:
Sample code output
This is how it looks after you've done that.
The rest of your blog goes here.
How about in a GIST?
You're all done. Bask in the glory of a great post.