V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
huacnlee
V2EX  ›  Project Babel

Github gist 代码插入支持

  •  
  •   huacnlee · 2010-08-02 19:57:52 +08:00 · 29992 次点击
    这是一个创建于 4987 天前的主题,其中的信息可能已经有所发展或是发生改变。
    做为一个 Geek 社区,没贴代码的功能怎么可以呢!
    现在加入Github gist的脚本的支持,使用方法,直接插入 Gist 的嵌入脚本,如:
    <script src=".js"> </script>

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

    http://github.com/huacnlee/v2ex
    124 条回复    2020-08-26 22:59:44 +08:00
    1  2  
    blueware
        101
    blueware  
       2014-08-27 18:37:46 +08:00
    ChanneW
        102
    ChanneW  
       2014-09-24 23:49:44 +08:00
    endintro
        103
    endintro  
       2014-09-28 16:27:30 +08:00
    endintro
        104
    endintro  
       2014-09-28 16:29:16 +08:00
    endintro
        105
    endintro  
       2014-09-28 16:33:08 +08:00
    endintro
        106
    endintro  
       2014-09-28 16:33:45 +08:00
    xiaohanyu
        107
    xiaohanyu  
       2014-10-15 18:07:45 +08:00
    veapon
        108
    veapon  
       2014-10-27 22:49:07 +08:00
    <script src="https://gist.github.com/veapon/5830222.js"></script>

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

    https://gist.github.com/urmyfaith/f81c98fb1700f8237e28
    kofj
        110
    kofj  
       2014-11-10 20:50:34 +08:00
    xiaolvmu
        111
    xiaolvmu  
       2014-12-22 17:23:07 +08:00 via Android
    真酷!
    janxin
        112
    janxin  
       2015-04-06 21:14:34 +08:00
    yingluck
        113
    yingluck  
       2015-04-11 21:47:01 +08:00
    loggerhead
        114
    loggerhead  
       2015-07-28 16:36:12 +08:00
    Wongzigii
        115
    Wongzigii  
       2016-01-04 16:38:22 +08:00
    <script src='http://pastie.org/10669021.js'>
    </script>
    Karsa
        116
    Karsa  
       2016-09-22 17:10:54 +08:00
    Karsa
        117
    Karsa  
       2016-09-22 17:11:05 +08:00
    Chrics
        119
    Chrics  
       2017-07-18 16:14:56 +08:00
    fhefh
        121
    fhefh  
       2017-08-23 22:45:24 +08:00
    fhefh
        122
    fhefh  
       2017-08-23 22:46:17 +08:00
    fhefh
        123
    fhefh  
       2018-04-12 00:47:06 +08:00
    rockyou12
        124
    rockyou12  
       2020-08-26 22:59:44 +08:00
    1  2  
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3208 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:25 · PVG 22:25 · LAX 07:25 · JFK 10:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.