Skip to content

Commit a48b402

Browse files
committed
DOC: re-enable syntax highlighting for included example code
1 parent 990af53 commit a48b402

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/examples.rst

+11
Original file line numberDiff line numberDiff line change
@@ -6,73 +6,84 @@ Play a Sound File
66
:gh-example:`play_file.py`
77

88
.. literalinclude:: ../examples/play_file.py
9+
:language: python
910

1011
Play a Very Long Sound File
1112
---------------------------
1213

1314
:gh-example:`play_long_file.py`
1415

1516
.. literalinclude:: ../examples/play_long_file.py
17+
:language: python
1618

1719
Play a Very Long Sound File without Using NumPy
1820
-----------------------------------------------
1921

2022
:gh-example:`play_long_file_raw.py`
2123

2224
.. literalinclude:: ../examples/play_long_file_raw.py
25+
:language: python
2326

2427
Play a Web Stream
2528
-----------------
2629

2730
:gh-example:`play_stream.py`
2831

2932
.. literalinclude:: ../examples/play_stream.py
33+
:language: python
3034

3135
Play a Sine Signal
3236
------------------
3337

3438
:gh-example:`play_sine.py`
3539

3640
.. literalinclude:: ../examples/play_sine.py
41+
:language: python
3742

3843
Input to Output Pass-Through
3944
----------------------------
4045

4146
:gh-example:`wire.py`
4247

4348
.. literalinclude:: ../examples/wire.py
49+
:language: python
4450

4551
Plot Microphone Signal(s) in Real-Time
4652
--------------------------------------
4753

4854
:gh-example:`plot_input.py`
4955

5056
.. literalinclude:: ../examples/plot_input.py
57+
:language: python
5158

5259
Real-Time Text-Mode Spectrogram
5360
-------------------------------
5461

5562
:gh-example:`spectrogram.py`
5663

5764
.. literalinclude:: ../examples/spectrogram.py
65+
:language: python
5866

5967
Recording with Arbitrary Duration
6068
---------------------------------
6169

6270
:gh-example:`rec_unlimited.py`
6371

6472
.. literalinclude:: ../examples/rec_unlimited.py
73+
:language: python
6574

6675
Using a stream in an `asyncio` coroutine
6776
----------------------------------------
6877

6978
:gh-example:`asyncio_coroutines.py`
7079

7180
.. literalinclude:: ../examples/asyncio_coroutines.py
81+
:language: python
7282

7383
Creating an `asyncio` generator for audio blocks
7484
------------------------------------------------
7585

7686
:gh-example:`asyncio_generators.py`
7787

7888
.. literalinclude:: ../examples/asyncio_generators.py
89+
:language: python

0 commit comments

Comments
 (0)