sphinx文档的代码展示
语法高亮
.. highlight:: c.. code-block:: ruby
Some Ruby code.代码行号
.. code-block:: ruby
:linenos:
Some more Ruby code... code-block:: python
:emphasize-lines: 3,5
def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'包含
参考
Last updated