Github-flavoured markdown uses Linguist for syntax highlighting, and Linguist supports “Python console” as a language.
You can use a
pycon alias in your fenced code blocks:
```pycon >>> from pprint import pprint as pp >>> from rich import inspect >>> import datetime >>> a = 1 ```
Note that Chroma, the syntax highlighting library used by Hugo (and this site), doesn’t support it, which is why there’s no syntax highlighting in the above code block.