Vim is able to export the file being edited to HTML with syntax highlightment.
The only thing to do is:
:TOhtmlAnd then save the newly created file.
By default, the export is compatible with old browser, thus there is no CSS. To activate it, simply use the following command:
:let html_use_css = 1You can obviously add this option to your .vimrc