Embed Gist

Posted by csiu on November 29, 2015 | with: Setup

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:

  1. Have gist
  2. Embed gist

… and that’s about it. Simple.