use source-highlight.
See also http://www.gnu.org/software/src-highlite/