File: linenothreshold.rst

package info (click to toggle)
sphinx 9.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 28,732 kB
  • sloc: python: 109,394; javascript: 37,318; perl: 449; makefile: 183; sh: 37; xml: 19; ansic: 2
file content (23 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (41)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Code Blocks and Literal Includes with Line Numbers via linenothreshold
======================================================================

.. highlight:: python
   :linenothreshold: 5

.. code-block::

   class Foo:
       pass

   class Bar:
       def baz():
       pass

.. code-block::

   # comment
   value = True

.. literalinclude:: literal.inc

.. literalinclude:: literal-short.inc