File: test_rst_008.rst

package info (click to toggle)
python-readme-renderer 37.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 764 kB
  • sloc: python: 409; sh: 23; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Here is some Python code for a ``Dog``:

.. code-block:: python

    class Dog(Animal):
        def __init__(self, name):
            self.name = name

        def make_sound(self):
            print('Ruff!')

    dog = Dog('Fido')

and then here is some bash:

.. code-block:: bash

    if [ "$1" = "--help" ]; then
        echo "OK"
    fi

or click `SurveyMonkey <http://www.surveymonkey.com>`_


.. code-block:: abc

    An unknown code fence block