Search code examples
pythonrich

print ouputs pink text


I am using the python library "rich" to print text. If I print with the default style, the text is printed to the console white on black as it should be. But if you print the word "wordn(" for example, it will get printed pink. Basically whenever you print an "n" followed by an "(", it will be printed pink together with everything before until there is a space. Code Example:

from rich.console import Console
Console().print("wordn(")

enter image description here


Solution

  • You can use highlight=False (docs here)