牛奶日記簿
An idle youth, a needy age. 人生就是每天的總合
2010年9月2日 星期四
在Vim中將 source code 轉換成 html
~
凌晨12:42
今天 google 時突然看到在 vim 中將 source code 轉換成 html 的指令,
在指令模式下輸入
:TOhtml
,
然後存檔即可。
e.g.
程式檔名為
test.cpp
透過 :TOhtml 指令產生並存檔,html檔名為
test.cpp.html
而且原本在 Vim 裡面的 color scheme 以及 color 都會保存在 html 檔案內,
大家可以試看看。
0 意見:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言