Nov-21-2022, 04:24 PM
(This post was last modified: Nov-21-2022, 04:24 PM by Gribouillis.)
This is interesting, it actually works to write text in green, blue or red and other colors of the syntax highlighting configuration. The underlying mechanism is the one that allows to print in colors in a Tkinter text window. Perhaps it could be possible to modify the code to print in any color in IDLE. It seems that a lot of the magic happens in the file colorizer.py of idlelib.
Nice idea, however there are not so many applications. Printing in color in a console is often an unnecessary gadget that just makes your code more complex.
Nice idea, however there are not so many applications. Printing in color in a console is often an unnecessary gadget that just makes your code more complex.