How do I colorize some YAML code without affecting background colors? #990
-
I currently use I tried giving a theme parameter like Is there a way to configure rich in such way that it would render yaml without affecting background? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In that last screenshot I'm pretty sure you are using the default them of "monokai" which has a non-transparent background color. Use "ansi_light" or "ansi_dark" for a transparent background. You can force the background color to be transparent with |
Beta Was this translation helpful? Give feedback.
In that last screenshot I'm pretty sure you are using the default them of "monokai" which has a non-transparent background color. Use "ansi_light" or "ansi_dark" for a transparent background.
You can force the background color to be transparent with
background_color="default"
although that may produce unreadable text for some terminals.