quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.28k stars 1.02k forks source link

Docs: Misplaced automatic keyword highlighting #5252

Open TimoEckstein opened 2 years ago

TimoEckstein commented 2 years ago

Description of the issue In the documentation, it seems that some keywords are automatically highlighted out of context. This occurs when the code example is not pure python code. Examples are:

sudo apt-get install texlive-latex-base latexmk
add2virtualenv <paste modules from last command>
./check/pytest [files-and-flags-for-pytest]

Cirq version cirq.master

TimoEckstein commented 2 years ago

xref https://github.com/quantumlib/Cirq/issues/5151