關鍵字:blogger插入程式碼錯誤,blogger插入程式碼問題。
1. 前言
本文參考於 <<在 Blog 中顯示明顯的程式碼區塊 Code Block - 1>>更新說明:
2024/10/29 更新文章目錄,並調整文章標題
2018/12/12 新增進階版文章
2018/05/15 文後補充bug

進階選項 > 新增CSS ,貼上本頁一開始的程式碼即可。


進入發文模式 > HTML。

在HTML的編輯模式下,貼上 <code>//這是程式區 輸入你的程式 </code> 。
2018/05/15 文後補充bug
2. 程式區塊的CSS程式碼
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ================== Blogger顯示code =================== */
CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}
3. 插件安裝方法:
到 主題>自訂 。

進階選項 > 新增CSS ,貼上本頁一開始的程式碼即可。

4. 使用方法:

進入發文模式 > HTML。

在HTML的編輯模式下,貼上 <code>//這是程式區 輸入你的程式 </code> 。
0 留言
不一定能即時回覆問題,有時間會盡量答覆。