Github gist 代码插入支持

2010-08-02 19:57:52 +08:00
 huacnlee
做为一个 Geek 社区,没贴代码的功能怎么可以呢!
现在加入Github gist的脚本的支持,使用方法,直接插入 Gist 的嵌入脚本,如:
<script src="http://gist.github.com/504523.js"> </script>

就可以了,样式有些不太好,由于 Gist 是后面加入 CSS 的,暂时在 style.css 里面重写,也不能写在后面,有页面性能问题.
没有加入手机版支持,在想这个是否有必要.

http://github.com/huacnlee/v2ex
31948 次点击
所在节点    Project Babel
124 条回复
blueware
2014-08-27 18:37:46 +08:00
ChanneW
2014-09-24 23:49:44 +08:00
endintro
2014-09-28 16:27:30 +08:00
endintro
2014-09-28 16:29:16 +08:00
endintro
2014-09-28 16:33:08 +08:00
endintro
2014-09-28 16:33:45 +08:00
xiaohanyu
2014-10-15 18:07:45 +08:00
veapon
2014-10-27 22:49:07 +08:00
<script src="https://gist.github.com/veapon/5830222.js"></script>

test
urmyfaith
2014-10-29 16:47:15 +08:00
直接复制gist链接就可以了:

https://gist.github.com/urmyfaith/f81c98fb1700f8237e28
kofj
2014-11-10 20:50:34 +08:00
xiaolvmu
2014-12-22 17:23:07 +08:00
真酷!
janxin
2015-04-06 21:14:34 +08:00
yingluck
2015-04-11 21:47:01 +08:00
loggerhead
2015-07-28 16:36:12 +08:00
Wongzigii
2016-01-04 16:38:22 +08:00
<script src='http://pastie.org/10669021.js'>
</script>
Karsa
2016-09-22 17:10:54 +08:00
Karsa
2016-09-22 17:11:05 +08:00
autoxbc
2017-06-01 15:04:07 +08:00
Chrics
2017-07-18 16:14:56 +08:00
Chrics
2017-07-18 16:15:38 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1244

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX