Using GitHub Gists to render source code
I’m curently toying with the idea of using GitHub Gists for all my code snippet rendering here on my site (and perhaps elsewhere).
However, I’m struggling to weigh up the pros and cons, so I’m throwing it open to people for comments.
Pros
- The syntax is nicely coloured, in a multitude of languages
- GitHub does all the heavy lifting of the colouring and provision of downloadable source
- The code doesn’t get mangled by the blog’s HTML editor (in this case, TinyMCE)
Cons
- It’s JavaScript-based, so Google won’t index the code
- It’s JavaScript-based, so you won’t see the code without JS enabled
- Until I find a workaround, page rendering is held up while the browser fetches the script to perform document.writes. And GitHub is not always the fastest at serving the gists
What are people’s thoughts? Are Gists the future, or is there a better solution?