simonw / sqlite-utils

Python CLI utility and library for manipulating SQLite databases
https://sqlite-utils.datasette.io
Apache License 2.0
1.66k stars 111 forks source link

Incorrect syntax highlighting in docs CLI reference #447

Closed simonw closed 2 years ago

simonw commented 2 years ago

https://sqlite-utils.datasette.io/en/stable/cli-reference.html#insert

CE020DDA-27FB-49C3-9EA6-37457DC4C321

It looks like Python keywords are being incorrectly highlighted here.

simonw commented 2 years ago

https://stackoverflow.com/a/44379513 suggests that the fix is:

.. code-block:: text

Or set this in conf.py:

highlight_language = "none"

I like that better - I don't like that all :: blocks default to being treated as Python code.

simonw commented 2 years ago

Deploying that to https://sqlite-utils.datasette.io/en/latest/cli-reference.html#insert

simonw commented 2 years ago

That fixed it:

image