tests/roots/test-directive-code/linenothreshold.rst
raw| 1 | Code Blocks and Literal Includes with Line Numbers via linenothreshold |
| 2 | ====================================================================== |
| 3 | |
| 4 | .. highlight:: python |
| 5 | :linenothreshold: 5 |
| 6 | |
| 7 | .. code-block:: |
| 8 | |
| 9 | class Foo: |
| 10 | pass |
| 11 | |
| 12 | class Bar: |
| 13 | def baz(): |
| 14 | pass |
| 15 | |
| 16 | .. code-block:: |
| 17 | |
| 18 | # comment |
| 19 | value = True |
| 20 | |
| 21 | .. literalinclude:: literal.inc |
| 22 | |
| 23 | .. literalinclude:: literal-short.inc |