Can I embed source files from GitHub on my webpage except Gists?

context

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

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

Question

Is it possible to embed with other code files from GitHub, for example, with this randomly selected C # file ICommand.cs which is not a Gist?

+6
source share
2 answers

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> 
+6
source

Another possible service is https://github.com/finom/github-embed . It seems that at the moment it has not been used for about 2 years, but the bottom line - it seems that it is not supported even for 6 years. I have not tried either one or the other.

0
source

All Articles