Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

How to set background color inside strings should be documented better #81

Open Mellbourn opened 1 year ago

Mellbourn commented 1 year ago

I searched for a long time on how you should set the background color inside a string.

Setting the whole background using --style, e.g. --style="on yellow" is clearly documented.

But it took me experimentation to figure out that you can use the syntax [on yellow] inside strings. For example:

image

I think this should be documented better.

Thanks for a great tool!

harkabeeparolus commented 1 year ago

Console markup is described in the Rich documentation:

https://rich.readthedocs.io/en/stable/markup.html