Eexpress @ Ubuntu

html2wiki:让wiki使用语法高亮显示。

保留颜色语法高亮是最重要的。要不vim的html输出就没意义了。
:source $VIMRUNTIME/syntax/2html.vim
:write __xxx__.html

先建立一个html2wiki.sed
s/[html:a href="/%5B%5B/g
s/"]http/|http/g
s/<\/a>/]]/g

s/<font \|<\/font>/@@/g
s/color="/color(/g
s/">/):/g

/<pre>\|<\/pre>/ d
/<body\|<\/body>/ d
/<html>\|<\/html>/ d
/<head>\|<\/head>/ d
/<meta/ d

s/<title>/!!/g
s/<\/title>//g

s/\/\//\/ \//g
s/<b>\|<\/b>\|<B>\|<\/B>/''/g
#&amp;&gt;&lt;&quot;
s/\t/>/g
#s/^ */>/g
s/ \{8\}/>/g

然后,这样运行
$●  sed -f html2wiki.sed fetch_web_pic.bash.html >fetch_web_pic.bash.html.wiki

得到的wiki文件,可以直接粘贴到tiddlywiki的编辑里面。如下图

nm-applet 休眠掉了试试 netbook-launcher

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies