summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-directive-code/linenothreshold.rst
blob: 09ee67efc54cd6234749a33debbd7b099cadd8a8 (plain)
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