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: README.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ function sumArray(arr: number[]): number {
51
51
```
52
52
````
53
53
54
+
By using `example-extractor`, you can easily maintain and manage code examples for documentation purposes, ensuring that your examples are always up-to-date with your source code.
55
+
54
56
### Example Usage in Source Files
55
57
56
58
You can have multiple examples in your source files. Each example should have a unique name:
@@ -69,7 +71,39 @@ function maxArray(arr: number[]): number {
69
71
// end-example
70
72
```
71
73
72
-
By using `example-extractor`, you can easily maintain and manage code examples for documentation purposes, ensuring that your examples are always up-to-date with your source code.
74
+
### Ignoring lines
75
+
76
+
Sometimes you want to exclude some code that needs to be there for your example to compile.
77
+
If you'd like to exclude some lines in your examples, you can turn off extraction during an example with `ignore-extract` and `end-ignore`:
0 commit comments