Vim is able to highlight syntax of a very large number of languages. It also has a nice feature, allowing you to save the highlighted source to a HTML file.
:runtime! syntax/2html.vim
After typing this command, you’ll get a split window with your source in HTML. You can now save it to a file.
Vim is cool 😛
this sounds very intresting, and i’m going to have a go with it tomorrow. 😀
Perfect, thank you.
Great, thanks! A programmer’s day without vim is just unconceivable
Nice tip!
Yet another way to do it:
http://codesnippets.joyent.com/posts/show/2073
It’s funny how some “senior developers” insist that you need to install the entire Visual Basic development suite to save syntax highlighting as HTML. Thank you for this tip.
(One thing I’ve always wondered. If there were no poor children in Uganda, would VIM exist?)
Legen-dary command, i just added map to this in my virc. Thanks:)
Try :TOhtml