Skip to content

Commit df483c8

Browse files
committed
Sphinx confuses me
The docs say that .. highlight:: sets a default language until the next .. highlight:: command, but look at the rendered text on RTD it seemed to only affect immediately following source block, not the one after that.
1 parent 72a80d6 commit df483c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Examples
22
========
33

4-
.. highlight:: python
5-
64
..
75
If we add any more examples then we should probably split this out
86
into separate pages for each example
@@ -14,9 +12,11 @@ Minimal client, using synchronous I/O
1412
-------------------------------------
1513

1614
.. literalinclude:: ../../examples/basic-client.py
15+
:language: python
1716

1817

1918
Fairly complete server with error handling, using Curio for async I/O
2019
---------------------------------------------------------------------
2120

2221
.. literalinclude:: ../../examples/curio-server.py
22+
:language: python

0 commit comments

Comments
 (0)