I have a .txt
file with some escape codes to show colour like this:
[0m[32mWord[0m
Is there a way I can view these files with colour in PyCharm? I tried the ANSI Highlighter Plugin but it seems to be defunct.
Just converting to a *.log or *.md file didn't help either.
The ANSI Highlighter Premium plugin works (but it is not free). You may need to enable it for the file types you want to display with ANSI colours.
I didn't bother to change the configuration for .txt
files, so I copied a .txt
file containing ANSI colour codes to a file with the extension .log
. Then PyCharm notified me that the file type was recognised by the plugin and asked whether I wanted to enable it. After enabling, colours are displayed just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With