Debian Codegraph @

tests/roots/test-directive-code/namedblocks.rst

raw
1 Named Blocks
2 ============
3
4 References to named blocks
5 --------------------------
6
7 See :ref:`the ruby code <some ruby code>` and
8 also :ref:`the python code <some python code>`.
9
10
11 Named Code block
12 ----------------
13
14 .. code-block:: ruby
15 :name: some ruby code
16
17 def ruby?
18 false
19 end
20
21
22 Named Literal Include
23 ---------------------
24
25 .. literalinclude:: literal.inc
26 :language: python
27 :name: some python code
28