Can I embed source files from GitHub on my web page other than Gists?
You can try https://emgithub.com, which does exactly what you want. To embed the example file ICommand.cs in your question, you can just add “em” before “github.com” in the address bar, then press Enter. Then you can get a script tag like this: <script src=”https://emgithub.com/embed-v2.js?target=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcorefx%2Fblob%2Fmaster%2Fsrc%2FSystem.ObjectModel%2Fsrc%2FSystem%2FWindows%2FInput%2FICommand.cs&style=default&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showCopy=on”></script> Note if you simply click Run code snippet in StackOverflow, the … Read more