Vim: convert highlights of the current syntax to HTML Execute: :runtime! syntax/2html.vim This will output a colored .html file.