mirror of https://github.com/Textualize/rich.git
doc example
This commit is contained in:
parent
0762cf35a9
commit
0df0b483a4
|
@ -29,7 +29,7 @@ Strings may contain :ref:`console_markup` which can be used to easily insert col
|
|||
|
||||
The following demonstrates both console markup and pretty formatting of Python objects::
|
||||
|
||||
>>> print("[red]*Hello*[/red] World!", locals())
|
||||
>>> print("[italic red]Hello[/italic red] World!", locals())
|
||||
|
||||
This writes the following output to the terminal (including all the colors and styles):
|
||||
|
||||
|
|
Loading…
Reference in New Issue