2010年9月2日 星期四

在Vim中將 source code 轉換成 html

今天 google 時突然看到在 vim 中將 source code 轉換成 html 的指令,
在指令模式下輸入 :TOhtml
然後存檔即可。

e.g.
程式檔名為 test.cpp
透過 :TOhtml 指令產生並存檔,html檔名為 test.cpp.html

而且原本在 Vim 裡面的 color scheme 以及 color 都會保存在 html 檔案內,
大家可以試看看。

0 意見: