2007年9月27日 星期四

練習貼一段程式碼

這是 1-Click Install 用的

<metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
<group>
<repositories>
<repository recommended="true">
<name>home:swyear</name>
<summary>swyear's Home Project</summary>
<description>swyear's home, maintaining some Chinese software.
these are tests, use on your risk!

這裡是 swyear 的家,幫忙打包一些中文套件。
我盡力做好這份工作,但是可能還是做得不夠好。</description>
<url>http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3</url>
</repository>
<repository recommended="true">
<name>openSUSE:10.3</name>
<summary>openSUSE 10.3 distribution</summary>
<description>The openSUSE 10.3 distribution.</description>
<url>http://download.opensuse.org/repositories/openSUSE:/10.3/standard</url>
</repository>
</repositories>
<software>
<item>
<name>gcin</name>
<summary>gcin : Chinese input method server</summary>
<description>gcin is a Chinese input method server for traditional Chinese. It features
a better GTK user interface.</description>
</item>
</software>
</group>
</metapackage>

因為常常貼一些 html
發現在 blogspot 裡好像貼不出來
參考了
http://blog.sina.com.tw/tomato/article.php?pbgid=13588&entryid=6594
先用文字編輯器將
< 用 &lt; 取代
> 用 &gt; 取代
然後將程式碼貼到 <code> 和 </code> 間
您如果要打出 &lt;
還得將 <code> 和 </code> 包住 &lt; 的一部分,像是
<code>&</code>lt;
打字好像在玩繞口令
一般人都是這樣做的嗎?
感覺以前在 lifetype 和 wordpress 都不用如此麻煩
blogspot 的 『修改html』和『撰寫』感覺分不清楚,有點爛

沒有留言: