Take a look at the VI(m) editor. There is a Syntax mode for highlighting different file types, as well as tools for exporting the highlighted text to HTML. I have yet to find a file type that it doesn’t already handle.
Works really slick.
bobb
Well if you’re going to go there, emacs will hilite and execute your sql.