2016-04-10 20:42:00 +02:00
|
|
|
Caption
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
References
|
|
|
|
|
----------
|
|
|
|
|
|
2016-09-17 18:13:17 +09:00
|
|
|
See :numref:`name *test* rb` and :numref:`name **test** py`.
|
2016-04-10 20:42:00 +02:00
|
|
|
|
|
|
|
|
See :ref:`Ruby <name *test* rb>` and :ref:`Python <name **test** py>`.
|
|
|
|
|
|
2014-08-11 22:36:31 +09:00
|
|
|
|
|
|
|
|
Code blocks
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
.. code-block:: ruby
|
2014-09-19 12:04:25 +09:00
|
|
|
:caption: caption *test* rb
|
2014-08-11 22:36:31 +09:00
|
|
|
|
|
|
|
|
def ruby?
|
|
|
|
|
false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Literal Include
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: literal.inc
|
|
|
|
|
:language: python
|
2014-09-19 12:04:25 +09:00
|
|
|
:caption: caption **test** py
|
2014-08-11 22:36:31 +09:00
|
|
|
:lines: 10-11
|
2016-04-10 20:42:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Named Code blocks
|
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
|
|
.. code-block:: ruby
|
|
|
|
|
:name: name *test* rb
|
|
|
|
|
:caption: caption *test* rbnamed
|
|
|
|
|
|
|
|
|
|
def ruby?
|
|
|
|
|
false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Named Literal Include
|
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: literal.inc
|
|
|
|
|
:language: python
|
|
|
|
|
:name: name **test** py
|
|
|
|
|
:caption: caption **test** pynamed
|
|
|
|
|
:lines: 10-11
|
|
|
|
|
|