Is there some program that can parse vim syntax highlighting scripts and colorize code for export to the shell? Basically I am looking for cat/less with shell highlighting that draws its syntax from vimscript definitions, so I can define my own.
addendum: A preferred solution would be a program that outputted to stdout directly, like cat, so i could pipe to less or whatever i would want to use it for