summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-reST-code-role/index.rst
blob: 5be6bfc577eb57a4bb9f24f43810e716ba3c1acc (plain)
1
2
3
4
5
6
7
8
9
.. role:: python(code)
   :language: python
   :class: highlight

Inline :python:`def foo(1 + 2 + None + "abc"): pass` code block

.. code-block:: python

   def foo(1 + 2 + None + "abc"): pass