我可以在Gist之外的网页上嵌入来自GitHub的源文件吗? [英] Can I embed source files from GitHub on my web page other than Gists?

查看:89
本文介绍了我可以在Gist之外的网页上嵌入来自GitHub的源文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在GitHub上创建要点并将其嵌入到您的网页中:

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

这是随机选择的Gist的示例: tap.groovy .

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

还可以与来自GitHub的其他代码文件进行嵌入,例如与此随机选择的C#文件

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?

推荐答案

您可以使用 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>

这篇关于我可以在Gist之外的网页上嵌入来自GitHub的源文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆