Syntax Highlighting: Vim to HTML

I have seen a few different websites that offer their code in a colour-coded format online which makes reading it much easier. I even found GeSHi which provides an API in PHP for people that want to embed the same thing in their own pages. I was going to write a simple form interface that meant when I had a code snippet that I wanted to put on lambie.org, I could make it pretty.

Then I found that Vim has this built-in.

#include <stdio.h>

int main() {
    printf("Hello, world\n");
    return(0);
}

The above is a result of entering:

:TOhtml

You can force CSS by:

:let html_use_css=1

I found that it didn't work as well as forcing FONT tags.