 
                        学习Sphinx相关语法时,开启了conf.py中的高亮插件,为何不起作用
[资源/截图/dump]
https://gist.github.com/ming2281/3c62805b5c05cd7838126be8992d707d文件有前面的搜索提示
有影响的几行
pygments_style = 'sphinx'
我的rst内容如下
.. highlight:: python
    :linenos:
    def add(a,b):
        return a+b
.. code-block:: python
    :linenothreshold: 2
    def AAAA(a,b,c):
        for num in nums:
            print(Num)
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
业精于勤,荒于嬉;行成于思,毁于随。