alay9999
V2EX  ›  V2EX

[V2EX 技巧] 贴图和贴代码的方法(写给像我一样的小白)(14.08.29 更新版)

  •  2
     
  •   alay9999 · Aug 29, 2014 · 44869 views
    This topic created in 4448 days ago, the information mentioned may be changed or developed.
    以前我曾经写过一个一样的主题帖( https://www.v2ex.com/t/74249 ),但是有很多不完善的地方,而且因为帖子无法修改,APPEND 大家又不怎么注意,导致很多人还是要反复的测试测试,所以我再发一个更新版好了。

    一、贴图

    使用各种图片空间保存图片,支持的图床为: http://imgur.com/ 和 新浪微博(比如: http://www.v2ex.com/t/44453 )

    然后复制图片地址,注意地址后缀是图片后缀(比如.jpg、png)才行

    发帖时直接放图片网址即可,不用任何其他代码

    二、贴代码

    在 https://gist.github.com/ 写入代码;

    点击右下角的 Create public Gist 按钮;

    在发布成功的页面右侧找到 Embed URL,并复制其中内容;

    获得代码状如(为防止被转换,我插入了几个空格,下同) :<scri pt src="htt ps://gist.git hub.com/ano nym ous/589 4938.js"></sc ript>

    删除头尾变成如下格式 : h ttps://gist.gith ub.com/ano nymous/58 94938

    也可以说是获取代码中的链接地址,然后去掉 .js 后缀

    然后把获取到的,状如: ht tps://gist.gi thub.com/anony mous/58 94938 的地址粘贴到 V2EX 的编辑框即可

    如果下方代码正常显示,则证明此方法可以正常使用。

    434 replies  •  2026-05-19 16:43:07 +08:00
    1  2  3  4  5  
    ❮ ❯
    lada04
    lada04
    May 2, 2017
    201
    https://ooo.0o0.ooo/2017/05/01/590699e24fa64.gif
    lada04
    lada04
    May 2, 2017
    202
    https://ooo.0o0.ooo/2017/05/01/590699e25cc93.gif
    Manuones
    Manuones
    May 25, 2017
    203
    测试
    lszbao
    lszbao
    May 27, 2017
    204
    lszbao
    lszbao
    May 27, 2017
    205
    测试
    CallMeHoney
    CallMeHoney
    May 28, 2017
    208
    ricemo
    ricemo
    Jun 3, 2017
    209
    wyfyw
    wyfyw
    Jun 6, 2017
    210
    wyfyw
    wyfyw
    Jun 6, 2017
    211

    不行,不知道为啥。
    ThinkCenter
    ThinkCenter
    Jun 6, 2017
    212
    zomco
    zomco
    Jun 10, 2017
    213
    deadEgg
    deadEgg
    Jul 26, 2017
    214
    deadEgg
    deadEgg
    Jul 26, 2017
    215
    test
    jiaslbang
    jiaslbang
    Aug 3, 2017
    216
    ![test]
    crossoverJie
    crossoverJie
    Aug 11, 2017
    217
    test
    pwf
    pwf
    Aug 22, 2017
    220
    pwf
    pwf
    Aug 22, 2017
    221
    zjfeng
    zjfeng
    Aug 23, 2017
    222
    <blockquote class="imgur-embed-pub" lang="en" data-id="a/rXsGA"><a href="//imgur.com/rXsGA"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
    zjfeng
    zjfeng
    Aug 23, 2017
    223
    LaudOak
    LaudOak
    Aug 23, 2017
    224
    <a href="https://simimg.com/i/5wCG"><img src="https://s1.simimg.com/2017/08/23/5wCG.png" alt="5wCG.png" border="0" /></a>
    graycreate
    graycreate
    Sep 14, 2017
    228
    ![]( )
    lhstock
    lhstock
    Sep 15, 2017
    231
    why..
    https://ooo.0o0.ooo/2017/09/15/59bb7e9dbf62a.jpg
    gaolycn
    gaolycn
    Sep 21, 2017
    232
    corningsun
    corningsun
    Sep 28, 2017
    234
    hooluupog
    hooluupog
    Sep 29, 2017
    238
    ```
    package main

    import "fmt"

    func main(){
    fmt.Println("hello")
    }
    ```
    trythebest
    trythebest
    Sep 30, 2017
    240
    test
    frankwei
    frankwei
    Oct 7, 2017
    241
    frankwei
    frankwei
    Oct 7, 2017
    242
    frankwei
    frankwei
    Oct 7, 2017
    243
    xsxsxszs
    xsxsxszs
    Oct 23, 2017 via iPhone
    245
    测试
    skkk
    skkk
    Nov 8, 2017
    251
    bmy
    bmy
    Nov 15, 2017
    254
    ftp11yyy
    ftp11yyy
    Nov 21, 2017
    255
    测试
    Solidity
    Solidity
    Dec 6, 2017
    257
    cname
    cname
    Dec 29, 2017
    260
    lj3lj3
    lj3lj3
    Jan 2, 2018
    262
    test
    dbdd
    dbdd
    Jan 3, 2018
    263
    test

    <iframe frameborder="0" width="640" height="498" src="https://v.qq.com/iframe/player.html?vid=h01991c3avm&tiny=0&auto=0" allowfullscreen></iframe>
    dbdd
    dbdd
    Jan 3, 2018
    264
    @dbdd ...
    Estheryo
    Estheryo
    Jan 11, 2018
    265
    mewpoi
    mewpoi
    Jan 12, 2018
    267
    hijoker
    hijoker
    Jan 31, 2018
    270
    cisisustring
    cisisustring
    Feb 15, 2018
    272
    cisisustring
    cisisustring
    Feb 15, 2018
    273
    测试 2
    Lothar
    Lothar
    Feb 28, 2018
    276
    test
    HuangLibo
    HuangLibo
    Mar 1, 2018
    277
    <img src="https://i.loli.net/2018/03/01/5a97689cb1b6e.jpeg" alt="我全都要.jpeg" title="我全都要.jpeg" />
    finull
    finull
    Mar 7, 2018
    280
    finull
    finull
    Mar 7, 2018
    281
    test
    Wolther47
    Wolther47
    Mar 11, 2018
    282
    Imgur 图床测试
    https://imgur.com/a/daARn
    Wolther47
    Wolther47
    Mar 11, 2018
    283
    Wolther47
    Wolther47
    Mar 11, 2018
    284
    Wolther47
    Wolther47
    Mar 11, 2018
    285
    Wolther47
    Wolther47
    Mar 11, 2018
    286
    Markdown 呢 **Hello, World!**
    Wolther47
    Wolther47
    Mar 12, 2018
    288
    YiFeiY
    YiFeiY
    Mar 21, 2018
    291
    [Imgur]( )
    vegito2002
    vegito2002
    Mar 27, 2018
    297
    wym572
    wym572
    Mar 27, 2018
    298
    rebeccaMyKid
    rebeccaMyKid
    Apr 11, 2018
    300
    1  2  3  4  5  
    ❮ ❯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1411 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 134ms · UTC 22:06 · PVG 06:06 · LAX 14:06 · JFK 17:06
    ♥ Do have faith in what you're doing.