適合貼程式code 的部落格平台 - 部落格

By Rosalind
at 2007-04-30T12:13
at 2007-04-30T12:13
Table of Contents
很久之前的文章了,只好回覆佔板面了 @@
請問 CODE{ } 裡的語法要貼在哪…
Template→Edit HTML,是指 範本→修改HTML吧
※ 引述《uvm ()》之銘言:
: 其他家不清楚,我是用Blogger,很方便,
: 只要去Template→Edit HTML,
: 在Posts的部分加上以下語法,
: 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;
: }
: 之後文章中要貼語法時,
: 只要把語法放在<code></code>之間就可以了。
: 效果請看 http://tinyurl.com/y79fss
: ---
: 歡迎到我的部落格坐坐 http://khaihiok.blogspot.com/
--
請問 CODE{ } 裡的語法要貼在哪…
Template→Edit HTML,是指 範本→修改HTML吧
※ 引述《uvm ()》之銘言:
: 其他家不清楚,我是用Blogger,很方便,
: 只要去Template→Edit HTML,
: 在Posts的部分加上以下語法,
: 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;
: }
: 之後文章中要貼語法時,
: 只要把語法放在<code></code>之間就可以了。
: 效果請看 http://tinyurl.com/y79fss
: ---
: 歡迎到我的部落格坐坐 http://khaihiok.blogspot.com/
--
Tags:
部落格
All Comments

By Elvira
at 2007-05-01T14:25
at 2007-05-01T14:25

By Valerie
at 2007-05-02T02:01
at 2007-05-02T02:01

By Emily
at 2007-05-04T13:34
at 2007-05-04T13:34
Related Posts
請問天空部落如何將AdSense 置入Blog 的工具條

By Enid
at 2007-04-30T10:17
at 2007-04-30T10:17
樂多改版後...

By Callum
at 2007-04-30T08:22
at 2007-04-30T08:22
fc2 系統怎麼了

By Sierra Rose
at 2007-04-30T07:44
at 2007-04-30T07:44
請問大家的blogger都還安好嗎

By Robert
at 2007-04-30T01:17
at 2007-04-30T01:17
Blogger用FireFox作版面配置的時候...

By Todd Johnson
at 2007-04-30T01:11
at 2007-04-30T01:11