The Syntax constructor (and :meth:`~rich.syntax.Syntax.from_path`) accept a ``theme`` attribute which should be the name of a `Pygments theme <https://pygments.org/demo/>`_.
You can use this class from the command line. Here's how you would syntax highlight a file called "syntax.py"::
python -m rich.syntax syntax.py
For the full list of arguments, run the following::