Vim has an useful :TOhtml function that converts Vim syntax highlighting to HTML. Read more about it here: <a href="http://vimdoc.sourceforge.net/htmldoc/syntax.html#:TOhtml" rel="nofollow">http://vimdoc.sourceforge.net/htmldoc/syntax.html#:TOhtml</a>