Colorize context: highlight file name, line number and function name with different colors
Author: KOLANICHCreated Dec 6, 2022Updated Apr 5, 2026
I have done some investigation, it seems that current icecream and pygments architecture are incompatible with it.
- everything is rendered first, then colorized with
pygments, then a hack for legacy Windows support is executed, all withincolorize. - If we annotate output with control codes, they are escaped by
pygments.
Reengineering of icecream seems to be needed to handle this.
Source: gruns/icecream