[Python] Code block partially highlighted in Sphinx

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    In my Sphinx documentation I have the following code-block:

    .. code-block:: python

    import logging
    logging.getLogger('mymodule').setLevel(logging.INFO)


    but when the documentation is rendered the code is only partially highlighted:

    [​IMG]

    Is it possible to highlight also the other parts? The only (related) settings I am using in conf.py is pygments_style = 'default'.

    Continue reading...

Compartilhe esta Página