發表文章

目前顯示的是 3月, 2019的文章

政府網際服務網配發IPv4與IPv6範圍(Government Service Network IPv4 & IPv6 Range)

 以下資料來自TWNIC RMS系統在統一整理成CIDR格式   GSN-NET (IPv4) 61.56.0.0/20 61.57.32.0/19 61.60.0.0/17 61.67.64.0/19 117.56.0.0/16 124.199.64.0/19 124.199.96.0/20 163.29.0.0/16 210.69.0.0/16 210.241.0.0/17 211.79.128.0/18 223.200.0.0/16   GSN-NET (IPv6) 2001:4420::/32

高亮度顯示程式碼:使用 Google Code Prettify

無意中發現 Google 有提供高亮度顯示程式碼的小工具 https://github.com/google/code-prettify 簡單引用方式如下 <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script> or <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> 另外還有提供樣式可選擇 https://cdn.rawgit.com/google/code-prettify/master/styles/index.html 像我本身比較喜歡Desert樣式,語法就這樣下 <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=desert"></script> 接著在撰寫程式碼中加入特定tag <pre class="prettyprint"> <code class="language-html"> .......... </code> </pre> 備註:code中language-*支援多種程式語言,如下 <!-- File extensions supported by default include:     "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java",