I have an RST file for which I do not want any syntax highlighting. It contains multiple literal blocks and a highlight directive at the top of the file to try to disable syntax highlights:
.. highlight:: none
::
Text that happens to contain words like list, None, etc.
::
Another literal block with words like list, None, etc.
Some other RST files in the project use syntax highlighting with directives like this:
.. highlight:: bash
When I build the docs with sphinx on my workstation, sphinx correctly highlights syntax where enabled and disables syntax highlights where it is disabled. However, when built on readthedocs website there is unwanted Python syntax highlighting within the literal blocks in the RST file containing .. highlight:: none
. Words like "None" and "list" are highlighted.
How can I selectively disable syntax highlighting in this RST file while keeping the syntax highlights elsewhere?