github
github preview
對於此系統久聞已久,卻遲遲沒有辦帳號... (真不應該 >"<
最近在思考怎麼簡單的將 github 上的 code preview 出來
於是找了幾個方法
方法一:
只要將你想看那頁的 url 貼上
e.g. 我想看這很爛的 code
https://github.com/BearZi/practice/blob/master/Tic_Tac_Toe.html
其實下面也有寫到,在url前面加上 http://htmlpreview.github.io/? 也是可以的。
or prepend to the URL: http://htmlpreview.github.io/? https://raw.github.com/twbs/bootstrap/gh-pages/2.3.2/index.html
方法二:
將那頁的 code轉成 raw 模式 http://raw.githubusercontent.com/BearZi/practice/master/Tic_Tac_Toe.html
再將 domain 換成 rawgit.com 如下: http://rawgit.com/BearZi/practice/master/Tic_Tac_Toe.html