vim provide a function to covert current code view to a html page.
- open your code file with gvim
- execute :set syntax=c for example to assign the highlight scheme.
- execute “Convert to HTML” in “Syntax” menu.
- save the generated html page.
vim确实是个强劲的编辑器,我在unix下面都用它,vim也有windows的版本。