Are there any python modules that take text and add python syntax highlighting to it?
===

Are there any python modules that I could use with google app engine that take a string of code like this:

        #example
        a = 1
        while a < 10:
            print a
            a += 1

and then color the text like a basic python editor would (or like stack overflow)?

