Website of latouche

[home] [Computers and networks] [tips]

Export to HTML with Vim

Vim is able to export the file being edited to HTML with syntax highlightment.

The only thing to do is:

:TOhtml
And 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 = 1
You can obviously add this option to your .vimrc


Last update: 2007/11/18