LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 606|回复: 1

有没有支持bb代码的博客网站

[复制链接]
发表于 2009-12-21 04:40:42 | 显示全部楼层 |阅读模式
刚开通了一个网易博客,发现里面不能使用bb代码,好像是只支持html代码,这样的话我贴代码就麻烦了,把终端里面的linux命令或者shell程序复制到博客里面就不好看了,就像下面这样
[xie@xie ~]$ fedora-business-cards
Login to FAS:
Username: xielingyun
Password:
Current business card layout:
   +-------------------------------------------------------------+
n | Xie Yunpeng                                                 |
t | Fedora Project Contributor                                  |
   |                                                             |
0 | xielingyun AT fedoraproject DOT org                                |
1 | (919) 424-0063 x 5113838                                    |
2 | xielingyun on irc.freenode.net                              |
3 | fedoraproject.org                                           |
4 |                                                             |
5 | GPG key ID: A54C55AD                                        |
   |                                                             |
   |                                                             |
   | fedora                 freedom | friends | features | first |
   +-------------------------------------------------------------+
Enter a line number to edit, or [y] to accept: 0
Enter new data for line 0: woqimingweipeng@gmail.com
Current business card layout:
   +-------------------------------------------------------------+
n | Xie Yunpeng                                                 |
t | Fedora Project Contributor                                  |
   |                                                             |
0 | woqimingweipeng AT gmail DOT com                                   |
1 | (919) 424-0063 x 5113838                                    |
2 | xielingyun on irc.freenode.net                              |
3 | fedoraproject.org                                           |
4 |                                                             |
5 | GPG key ID: A54C55AD                                        |
   |                                                             |
   |                                                             |
   | fedora                 freedom | friends | features | first |
   +-------------------------------------------------------------+
Enter a line number to edit, or [y] to accept: y
Generating front... Generating back... Done.
[xie@xie ~]$
不如下面这样好看
文字
  1. [xie@xie ~]$ fedora-business-cards
  2. Login to FAS:
  3. Username: xielingyun
  4. Password:
  5. Current business card layout:
  6.    +-------------------------------------------------------------+
  7. n | Xie Yunpeng                                                 |
  8. t | Fedora Project Contributor                                  |
  9.    |                                                             |
  10. 0 | xielingyun AT fedoraproject DOT org                                |
  11. 1 | (919) 424-0063 x 5113838                                    |
  12. 2 | xielingyun on irc.freenode.net                              |
  13. 3 | fedoraproject.org                                           |
  14. 4 |                                                             |
  15. 5 | GPG key ID: A54C55AD                                        |
  16.    |                                                             |
  17.    |                                                             |
  18.    | fedora                 freedom | friends | features | first |
  19.    +-------------------------------------------------------------+
  20. Enter a line number to edit, or [y] to accept: 0
  21. Enter new data for line 0: woqimingweipeng@gmail.com
  22. Current business card layout:
  23.    +-------------------------------------------------------------+
  24. n | Xie Yunpeng                                                 |
  25. t | Fedora Project Contributor                                  |
  26.    |                                                             |
  27. 0 | woqimingweipeng AT gmail DOT com                                   |
  28. 1 | (919) 424-0063 x 5113838                                    |
  29. 2 | xielingyun on irc.freenode.net                              |
  30. 3 | fedoraproject.org                                           |
  31. 4 |                                                             |
  32. 5 | GPG key ID: A54C55AD                                        |
  33.    |                                                             |
  34.    |                                                             |
  35.    | fedora                 freedom | friends | features | first |
  36.    +-------------------------------------------------------------+
  37. Enter a line number to edit, or [y] to accept: y
  38. Generating front... Generating back... Done.
  39. [xie@xie ~]$
复制代码

不知道是不是有办法让它支持bb代码,或者是有没有支持bb代码的博客网站,或者有什么别的办法让程序代码在blog里面看着好看
 楼主| 发表于 2009-12-21 05:37:42 | 显示全部楼层
呵呵,贴代码的问题解决了,使用html的<pre>标签就可以了,网易博客应该是把<code>给禁用了,在文章里面使用<code>标签自动替换成了<co><wbr>de&gt;下面是使用了以后的效果
http://woqimingweipeng.blog.163. ... 434/edit/?mode=prev
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表