Python-Sphinx启用了Pygments作为代码高亮插件,为何生成实际html文档, 不起作用, 甚至内容没有?
迷茫
迷茫 2017-04-17 17:39:12

学习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)
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(0)
Popular topics
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!