One of the things I’ve been meaning to do was to figure out how to embed code from GitHub onto a blog. Not only is this awesome, but would enhance our ability to disseminate knowledge.
After a quick Google search, I stumbled onto Robert Greiner’s Using Github as a Syntax Highlighter for Your Blog or Website. There he explains in detail how it’s done … but here is the TL;DR version:
- Have gist
- Embed gist
… and that’s about it. Simple.