line-block

.. line-block::

line-block

sample

source:

block:

  .. line-block::
    :class: test
    :name: test

    text1.
    text2.

output:

block:

text1.
text2.

source:

block:

  .. line-block::
    :class: highlight
    :name: highlight

    highlight1
    highlight2

output:

block:

highlight1
highlight2

source:

block:

  .. line-block::
    :class: highlight-python
    :name: highlight-python

    highlight-python1
    highlight-python2

output:

block:

highlight-python1
highlight-python2

test:

test
test