Saturday, 26 March 2011

Vim to HTML

I just discovered a feature of Vim that I'm not entirely sure is useful, but it's certainly interesting:


It outputs the current file as HTML, including syntax highlighting! To see what I mean, this is the output when run on the main JavaScript file for my piXY application. Set your browser's monospace font to Consolas and what you'll see is pretty much exactly what I see in MacVim (as seen in the screenshot in the previous post).

No comments:

Post a comment