vim で ソースをHTMLに

:so $VIMTUNIME/syntax/2html.vim
:TOhtml

#!/bin/sh
vim -n -c ':so $VIMRUNTIME/syntax/2html.vim' \
-c ':wqa' $1 > /dev/null 2> /dev/null

http://advweb.seesaa.net/article/1647801.html