diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-15 23:57:03 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-21 02:49:44 +0200 |
| commit | 62973b78d4c7c7b7835b682383a9b38287cdf459 (patch) | |
| tree | f0810ddc42ab4c43bc64b1d1393c1cc1c6f88c71 /Documentation | |
| parent | 0e98fe2adb2d0f10a0907936d91c281f2b65d1c9 (diff) | |
| download | sparse-dev-62973b78d4c7c7b7835b682383a9b38287cdf459.tar.gz | |
autodoc: by default disable syntax highlighting
Syntax highlighting is great for code but by default sphinx
consider literal sections as code and will thus hightlight
every python keyword ('is', 'and', 'or', ...).
It's quite annoying.
So disable default syntax highlighting, real piece of code
can still be nicely hightlight by using a 'code-block':
.. code-block:: c
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/conf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index e86be1a0..f7a68014 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -69,6 +69,8 @@ version = release.split('-')[0] # it's a C project, so: primary_domain = 'c' +# disable syntax highlight in non-code sections +highlight_language = 'none' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
