2007-02-05

syntax highlighting goodness

From messing with my first post, I realized I want to see my code the same way I see it in vim. Luckily vim is awesome.

:help 2html

This is not a syntax file itself, but a script that converts the current
window into HTML. Vim opens a new window in which it builds the HTML file.

You are not supposed to set the 'filetype' or 'syntax' option to "2html"!
Source the script to convert the current file: >

:runtime! syntax/2html.vim

Save the file and simply copy the resulting html into a post.

No comments: