Skip to content

Commit 48a42f7

Browse files
committed
add emphasize-lines option info to doc
1 parent 808177f commit 48a42f7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/source/index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,32 @@ produces:
193193
print('B')
194194
print('C')
195195

196+
You may also emphasize particular lines in the source code with ``:emphasize-lines:``::
197+
198+
.. jupyter-execute::
199+
:emphasize-lines: 2,5-6
200+
201+
d = {
202+
'a': 1,
203+
'b': 2,
204+
'c': 3,
205+
'd': 4,
206+
'e': 5,
207+
}
208+
209+
produces:
210+
211+
.. jupyter-execute::
212+
:emphasize-lines: 2,5-6
213+
214+
d = {
215+
'a': 1,
216+
'b': 2,
217+
'c': 3,
218+
'd': 4,
219+
'e': 5,
220+
}
221+
196222
Controlling exceptions
197223
----------------------
198224

0 commit comments

Comments
 (0)