mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
Lower case "console" in import makes example fail
This commit is contained in:
parent
6d2135c9b7
commit
171021f2c1
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ Rich can syntax highlight various programming languages with line numbers.
|
|||
To syntax highlight code, construct a :class:`~rich.syntax.Syntax` object and print it to the console. Here's an example::
|
||||
|
||||
|
||||
from rich.console import console
|
||||
from rich.console import Console
|
||||
from rich.syntax import Syntax
|
||||
|
||||
console = Console()
|
||||
|
@ -22,4 +22,4 @@ You can use this class from the command line. Here's how you would syntax highli
|
|||
For the full list of arguments, run the following::
|
||||
|
||||
python -m rich.syntax -h
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue