@@ -16,43 +16,27 @@ Again, we will create several heroes to have some data to select from:
1616
1717//// tab | Python 3.10+
1818
19- ``` Python hl_lines="4-10"
20- # Code above omitted 👆
21-
22- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001_py310.py[ln:21 - 39 ]!}
23-
24- # Code below omitted 👇
25- ```
19+ {* ./docs_src/tutorial/offset_and_limit/tutorial001_py310.py ln[ 21:39] hl[ 4:10] * }
2620
2721////
2822
2923//// tab | Python 3.7+
3024
31- ``` Python hl_lines="4-10"
32- # Code above omitted 👆
33-
34- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001.py[ln:23 - 41 ]!}
35-
36- # Code below omitted 👇
37- ```
25+ {* ./docs_src/tutorial/offset_and_limit/tutorial001.py ln[ 23:41] hl[ 4:10] * }
3826
3927////
4028
4129/// details | 👀 Full file preview
4230
4331//// tab | Python 3.10+
4432
45- ``` Python
46- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001_py310.py!}
47- ```
33+ {* ./docs_src/tutorial/offset_and_limit/tutorial001_py310.py * }
4834
4935////
5036
5137//// tab | Python 3.7+
5238
53- ``` Python
54- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001.py!}
55- ```
39+ {* ./docs_src/tutorial/offset_and_limit/tutorial001.py * }
5640
5741////
5842
@@ -64,43 +48,27 @@ This is the code we had to select all the heroes in the `select()` examples:
6448
6549//// tab | Python 3.10+
6650
67- ``` Python hl_lines="3-8"
68- # Code above omitted 👆
69-
70- {!./ docs_src/ tutorial/ select/ tutorial003_py310.py[ln:34 - 39 ]!}
71-
72- # Code below omitted 👇
73- ```
51+ {* ./docs_src/tutorial/select/tutorial003_py310.py ln[ 34:39] hl[ 3:8] * }
7452
7553////
7654
7755//// tab | Python 3.7+
7856
79- ``` Python hl_lines="3-8"
80- # Code above omitted 👆
81-
82- {!./ docs_src/ tutorial/ select/ tutorial003.py[ln:36 - 41 ]!}
83-
84- # Code below omitted 👇
85- ```
57+ {* ./docs_src/tutorial/select/tutorial003.py ln[ 36:41] hl[ 3:8] * }
8658
8759////
8860
8961/// details | 👀 Full file preview
9062
9163//// tab | Python 3.10+
9264
93- ``` Python
94- {!./ docs_src/ tutorial/ select/ tutorial003_py310.py!}
95- ```
65+ {* ./docs_src/tutorial/select/tutorial003_py310.py * }
9666
9767////
9868
9969//// tab | Python 3.7+
10070
101- ``` Python
102- {!./ docs_src/ tutorial/ select/ tutorial003.py!}
103- ```
71+ {* ./docs_src/tutorial/select/tutorial003.py * }
10472
10573////
10674
@@ -114,43 +82,27 @@ We currently have 7 heroes in the database. But we could as well have thousands,
11482
11583//// tab | Python 3.10+
11684
117- ``` Python hl_lines="5"
118- # Code above omitted 👆
119-
120- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001_py310.py[ln:42 - 47 ]!}
121-
122- # Code below omitted 👇
123- ```
85+ {* ./docs_src/tutorial/offset_and_limit/tutorial001_py310.py ln[ 42:47] hl[ 5] * }
12486
12587////
12688
12789//// tab | Python 3.7+
12890
129- ``` Python hl_lines="5"
130- # Code above omitted 👆
131-
132- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001.py[ln:44 - 49 ]!}
133-
134- # Code below omitted 👇
135- ```
91+ {* ./docs_src/tutorial/offset_and_limit/tutorial001.py ln[ 44:49] * }
13692
13793////
13894
13995/// details | 👀 Full file preview
14096
14197//// tab | Python 3.10+
14298
143- ``` Python
144- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001_py310.py!}
145- ```
99+ {* ./docs_src/tutorial/offset_and_limit/tutorial001_py310.py * }
146100
147101////
148102
149103//// tab | Python 3.7+
150104
151- ``` Python
152- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial001.py!}
153- ```
105+ {* ./docs_src/tutorial/offset_and_limit/tutorial001.py * }
154106
155107////
156108
@@ -219,43 +171,27 @@ We can use `.offset()`:
219171
220172//// tab | Python 3.10+
221173
222- ``` Python hl_lines="5"
223- # Code above omitted 👆
224-
225- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial002_py310.py[ln:42 - 47 ]!}
226-
227- # Code below omitted 👇
228- ```
174+ {* ./docs_src/tutorial/offset_and_limit/tutorial002_py310.py ln[ 42:47] hl[ 5] * }
229175
230176////
231177
232178//// tab | Python 3.7+
233179
234- ``` Python hl_lines="5"
235- # Code above omitted 👆
236-
237- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial002.py[ln:44 - 49 ]!}
238-
239- # Code below omitted 👇
240- ```
180+ {* ./docs_src/tutorial/offset_and_limit/tutorial002.py ln[ 44:49] hl[ 5] * }
241181
242182////
243183
244184/// details | 👀 Full file preview
245185
246186//// tab | Python 3.10+
247187
248- ``` Python
249- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial002_py310.py!}
250- ```
188+ {* ./docs_src/tutorial/offset_and_limit/tutorial002_py310.py * }
251189
252190////
253191
254192//// tab | Python 3.7+
255193
256- ``` Python
257- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial002.py!}
258- ```
194+ {* ./docs_src/tutorial/offset_and_limit/tutorial002.py * }
259195
260196////
261197
@@ -300,43 +236,27 @@ Then to get the next batch of 3 rows we would offset all the ones we already saw
300236
301237//// tab | Python 3.10+
302238
303- ``` Python hl_lines="5"
304- # Code above omitted 👆
305-
306- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial003_py310.py[ln:42 - 47 ]!}
307-
308- # Code below omitted 👇
309- ```
239+ {* ./docs_src/tutorial/offset_and_limit/tutorial003_py310.py ln[ 42:47] hl[ 5] * }
310240
311241////
312242
313243//// tab | Python 3.7+
314244
315- ``` Python hl_lines="5"
316- # Code above omitted 👆
317-
318- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial003.py[ln:44 - 49 ]!}
319-
320- # Code below omitted 👇
321- ```
245+ {* ./docs_src/tutorial/offset_and_limit/tutorial003.py ln[ 44:49] hl[ 5] * }
322246
323247////
324248
325249/// details | 👀 Full file preview
326250
327251//// tab | Python 3.10+
328252
329- ``` Python
330- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial003_py310.py!}
331- ```
253+ {* ./docs_src/tutorial/offset_and_limit/tutorial003_py310.py * }
332254
333255////
334256
335257//// tab | Python 3.7+
336258
337- ``` Python
338- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial003.py!}
339- ```
259+ {* ./docs_src/tutorial/offset_and_limit/tutorial003.py * }
340260
341261////
342262
@@ -397,43 +317,27 @@ Of course, you can also combine `.limit()` and `.offset()` with `.where()` and o
397317
398318//// tab | Python 3.10+
399319
400- ``` Python hl_lines="5"
401- # Code above omitted 👆
402-
403- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial004_py310.py[ln:42 - 47 ]!}
404-
405- # Code below omitted 👇
406- ```
320+ {* ./docs_src/tutorial/offset_and_limit/tutorial004_py310.py ln[ 42:47] hl[ 5] * }
407321
408322////
409323
410324//// tab | Python 3.7+
411325
412- ``` Python hl_lines="5"
413- # Code above omitted 👆
414-
415- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial004.py[ln:44 - 49 ]!}
416-
417- # Code below omitted 👇
418- ```
326+ {* ./docs_src/tutorial/offset_and_limit/tutorial004.py ln[ 44:49] hl[ 5] * }
419327
420328////
421329
422330/// details | 👀 Full file preview
423331
424332//// tab | Python 3.10+
425333
426- ``` Python
427- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial004_py310.py!}
428- ```
334+ {* ./docs_src/tutorial/offset_and_limit/tutorial004_py310.py * }
429335
430336////
431337
432338//// tab | Python 3.7+
433339
434- ``` Python
435- {!./ docs_src/ tutorial/ offset_and_limit/ tutorial004.py!}
436- ```
340+ {* ./docs_src/tutorial/offset_and_limit/tutorial004.py * }
437341
438342////
439343
0 commit comments