Search code examples
githubjsfiddle

Reference GitHub file in jsFiddle


Is there a possibility to misuse grab files from a github repo as external resources in jsFiddle?


Solution

  • This is an updated answer, since the url's have changed slightly for Github... I ran into this issue and figured it out for present day. Hopefully this helps people out finding this post recently. Example for Bootstrap Slate theme from Bootswatch:

    1. Raw file url: https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

    2. Remove the 2. after raw: https://rawgithub.com/thomaspark/bootswatch/gh-pages/slate/bootstrap.css

    That's it! :D