views:

24

answers:

1

I am looking for a library which can create rich html (appropriately colored text etc.) in python

idea would be invoke the library with inputs like renderRich(code_snippet) and the output will be a colored output in html like we get in rich text editors like vim

A: 

http://pygments.org/ to rescue. one of the best.

iamgopal