You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/presenter/ReadMe.md
+39-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,6 @@ cd examples/presenter
36
36
pytest core_presentation.py
37
37
```
38
38
39
-
40
39
<h3><imgsrc="https://seleniumbase.github.io/img/logo6.png"title="SeleniumBase"width="24" /> Creating a new presentation:</h3>
41
40
42
41
```python
@@ -59,7 +58,6 @@ If creating multiple presentations at the same time, you can pass the ``name`` p
59
58
Notes are disabled by default. You can enable notes by specifying:
60
59
``show_notes=True``
61
60
62
-
63
61
<h3><imgsrc="https://seleniumbase.github.io/img/logo6.png"title="SeleniumBase"width="24" /> Adding a slide to a presentation:</h3>
64
62
65
63
```python
@@ -243,6 +241,45 @@ Presentations automatically get saved when calling:
243
241
self.begin_presentation(show_notes=True)
244
242
```
245
243
244
+
<h3><imgsrc="https://seleniumbase.github.io/img/logo6.png"title="SeleniumBase"width="24" /> Special abilities:</h3>
245
+
246
+
If you want to highlight multiple lines at different times in the same slide with the `<mark>` / `</mark>` tags, you can use the new `<mk-0>`-`</mk-0>`, `<mk-1>`-`</mk-1>` tags, which will generate multiple HTML slides from one Python slide.
247
+
248
+
Example:
249
+
250
+
```python
251
+
self.add_slide(
252
+
code=(
253
+
<p><mk-0>Highlight this on the 1st generated slide</mk-0></p>
254
+
<p><mk-1>Highlight this on the 2nd generated slide</mk-1></p>
255
+
<p><mk-2>Highlight this on the 3rd generated slide</mk-2></p>
256
+
<p><mk-3>Highlight this on the 4th generated slide</mk-3></p>
257
+
)
258
+
)
259
+
```
260
+
261
+
Those should automatically get converted to `<mark>` ... `</mark>` on their turn:
262
+
263
+
Eg. First generated slide:
264
+
265
+
```html
266
+
<p><mark>Highlight this on the first generated slide</mark></p>
267
+
<p>Highlight this on the second generated slide</p>
268
+
<p>Highlight this on the third generated slide</p>
269
+
<p>Highlight this on the fourth generated slide></p>
270
+
```
271
+
272
+
Eg. Second generated slide:
273
+
274
+
```html
275
+
<p>Highlight this on the first generated slide</p>
276
+
<p><mark>Highlight this on the second generated slide</mark></p>
277
+
<p>Highlight this on the third generated slide</p>
278
+
<p>Highlight this on the fourth generated slide></p>
0 commit comments