中華電信IPv4範圍(Chunghwa Telecom IPv4 Range)

以下資料來自TWNIC RMS系統在統一整理成CIDR格式 HINET-NET 1.160.0.0/12 1.34.0.0/15 36.224.0.0/12 43.255.92.0/22 59.112.0.0/12 60.248.0.0/14 61.216.0.0/13 61.224.0.0/13 103.25.236.0/22 111.240.0.0/12 114.24.0.0/14 114.32.0.0/12 118.160.0.0/13 118.168.0.0/14 122.116.0.0/15 122.118.0.0/16 122.120.0.0/13 125.224.0.0/13 125.232.0.0/15 168.95.0.0/16 202.39.0.0/18 202.39.64.0/19 202.39.128.0/17 203.66.0.0/16 203.69.0.0/16 203.74.0.0/15 210.241.224.0/19 210.242.0.0/16 210.59.128.0/17 210.61.0.0/16 210.62.248.0/21 210.65.0.0/16 210.71.128.0/17 211.20.0.0/14 211.72.0.0/16 211.75.0.0/16 218.160.0.0/12 220.128.0.0/12 EMOME-NET 42.64.0.0/12 111.70.0.0/15 111.80.0.0/14 114.136.0.0/15 116.59.0.0/16 211.79.32.0/20 221.120.0.0/18 221.120.64.0/19 223.136.0.0/13

高亮度顯示程式碼:使用 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",
    "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml",
    "xsl".
-->

若要顯示行號的話加上linenums屬性就行了,不過預設只顯示5的倍數行號

<pre class="prettyprint linenums">

要每行顯示的話加上以下style樣式就行了!

<style>
li.L0, li.L1, li.L2, li.L3,
li.L5, li.L6, li.L7, li.L8 {
  list-style-type: decimal !important;
}
</style>

留言

  1. The King Casino Company - Ventureberg
    It was born in septcasino 1934. ventureberg.com/ The Company offers luxury hotels, febcasino.com If you don't have a https://febcasino.com/review/merit-casino/ poker room in your house, then you'll 바카라 사이트 find a poker room in the

    回覆刪除

張貼留言

這個網誌中的熱門文章

中華電信IPv4範圍(Chunghwa Telecom IPv4 Range)