Skip to content

Commit eaf3086

Browse files
authored
doc: files - remove pre example (#24)
Signed-off-by: Stephan Renatus <stephan@styra.com>
1 parent 0e6e033 commit eaf3086

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

docs/files.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,7 @@ npc.greet("Alice")
5858

5959
The use of `id` and `#` is mandatory; you can't select files based on CSS classes or other attributes.
6060

61-
You can use `pre` instead of `script`:
62-
63-
```html
64-
<pre id="npc.py"><code>
65-
def greet(name):
66-
print(f"Hello, {name}")
67-
</code></pre>
68-
69-
<pre>
70-
import npc
71-
npc.greet("Alice")
72-
</pre>
73-
74-
<codapi-snippet sandbox="python" files="#npc.py"></codapi-snippet>
75-
```
76-
77-
Or even another `codapi-snippet`:
61+
You can also use another `codapi-snippet` instead of a script:
7862

7963
```html
8064
<pre>

0 commit comments

Comments
 (0)