Dynamically Rendering GitHub Files in Web Pages
You know how you can easily embed GitHub Gists into a webpage? Iβve always wanted that for any file on GitHub. I post a lot of code on my blog and itβs always tedious and error-prone having to copy and paste the code. Iβd rather be able to dynamically render a specific version of a file hosted on GitHub. So I created a little JavaScript jQuery plugin called github-files that pulls blobs from GitHub. Those blobs can then be rendered client-side and optionally syntax highlighted.