Display GitHub files on WordPress

By | January 6, 2018

I’ve been struggling a bit to find a good way to display files hosted on GitHub on my blog directly. I didn’t like that most plugins uses Gist which doesn’t allow for a nice collaboration. I have received some good recommendation about improving codes that I shared some time ago. I’d prefer a system where people can push a PR directly to my Git repo and, if I merge, the code is directly updated on the blog.

Finally, I found a service that allows me to do just that: http://gist-it.appspot.com/.

To use it, it’s as simple as adding a link to your GitHub file, as below (where $file is the link to the GitHub file).

<script src=”http://gist-it.appspot.com/$file”></script>

 
0 Kudos
Don't
move!

Thoughts?