News for hackers. Stuff that matters.
Re:Save Vim syntax highlighting to HTML by jmah on Wednesday December 03, 2008 @04:58AM (#384210)
The standard shortcut for this is :TOhtml (although I always screw it up and type :toHTML). Of course, you can ":help TOhtml" to get more info.
Re:Save Vim syntax highlighting to HTML by 13ren on Wednesday December 03, 2008 @05:09AM (#384220)
vim can do anything you can imagine, better than you imagined. If only you knew the command...

One for me was word completion to match other words in the file (^n, where ^ is control), but based on filenames (^x^f^n).

Re:Save Vim syntax highlighting to HTML by nfg on Wednesday December 03, 2008 @06:36AM (#384253)
For emacs see htmlfontify.el ( http://www.emacswiki.org/emacs/HtmlFontify ).
Re:Save Vim syntax highlighting to HTML by kzar on Wednesday December 03, 2008 @01:22PM (#384581)
Re:Save Vim syntax highlighting to HTML by Hovertruck on Wednesday December 03, 2008 @10:08AM (#384387)
Now if only I could bring myself to put font tags anywhere near a page. :\
Re:Save Vim syntax highlighting to HTML by mileszs on Wednesday December 03, 2008 @10:16AM (#384393)
You don't have to. As jmah said above, :TOhtml is the standard way to do it. First, you can issue the command :let html_use_css = 1. Highlight some code and enter :TOhtml, and you'll have non-font-tag-ified, css-ified HTML that uses your syntax highlighting.
Re:Save Vim syntax highlighting to HTML by mapleoin on Wednesday December 03, 2008 @03:19PM (#384739)
now someone should write a blogpost comparing that to using http://pygments.org/