Can I embed source files from GitHub on my web page other than Gists?

Lernkurve picture Lernkurve · May 13, 2016 · Viewed 14.8k times · Source

Context

You can create a Gist on GitHub and embed it on your web page: embedding Gists.

This is an example of a randomly chosen Gist: tap.groovy.

Question

Is embedding also possible with other code files from GitHub, for example with this randomly chosen C# file ICommand.cs which is not a Gist?

Answer

m.s. picture m.s. · Jul 31, 2016

You can use https://gist-it.appspot.com/:

<script src="http://gist-it.appspot.com/https://github.com/dotnet/corefx/blob/master/src/System.ObjectModel/src/System/Windows/Input/ICommand.cs"></script>