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
## Defining snippets in `JavaScript` and `TypeScript` source files
13
+
11
14
Defining code snippets in your source files is done by enclosing them as shown below:
12
15
13
16
```
@@ -30,7 +33,29 @@ export function divide(a, b){
30
33
// << division-snippet
31
34
```
32
35
33
-
Then use the `<snippet id='<your-snippet-id'/>` notation to define the corresponding placeholders in your markdown files. They will be replaced by the snippet injector when run:
36
+
## Defining source snippets in `XML` files
37
+
If you want to define a code-snippet in a `XML` file you should use the following approach:
## Defining placeholders for the snippets in your `MarkDown` files
58
+
Use the `<snippet id='<your-snippet-id>'/>` notation to define the corresponding placeholders in your markdown files. They will be replaced by the snippet injector when run:
0 commit comments