Skip to content

Commit 9b90307

Browse files
committed
README.rst: syntax highlighting
1 parent 7bae524 commit 9b90307

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Using
3939

4040
Create a test suite, add a test case, and print it to the screen:
4141

42-
::
42+
.. code-block:: python
4343
4444
from junit_xml import TestSuite, TestCase
4545
@@ -50,7 +50,7 @@ Create a test suite, add a test case, and print it to the screen:
5050
5151
Produces the following output
5252

53-
::
53+
.. code-block:: xml
5454
5555
<?xml version="1.0" ?>
5656
<testsuites>
@@ -68,7 +68,7 @@ Produces the following output
6868
6969
Writing XML to a file:
7070

71-
::
71+
.. code-block:: python
7272
7373
# you can also write the XML to a file and not pretty print it
7474
with open('output.xml', 'w') as f:

0 commit comments

Comments
 (0)