tommikaikkonen / prettyprinter

Syntax-highlighting, declarative and composable pretty printer for Python 3.5+
https://prettyprinter.readthedocs.io
MIT License
336 stars 20 forks source link

how to display colors #4

Closed Cologler closed 6 years ago

Cologler commented 6 years ago

Seems lose the colors:

snipaste_2017-12-21_07-41-16

snipaste_2017-12-21_07-41-33

tommikaikkonen commented 6 years ago

Try from prettyprinter import cpprint; cpprint('should be colored') (note the c character in front of pprint, short for colored). That should make it work.

Cologler commented 6 years ago

😂 resolved.