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@xxxxxxxxx> --- Documentation/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/conf.py b/Documentation/conf.py index e86be1a0a..f7a680147 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. -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html