pygments

Pygments is a syntax highlighting package written in Python.

Here are some articles that you may find helpful