Skip to content
28 changes: 26 additions & 2 deletions docs/userGuide/syntax/code.mbdf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Features:
- Syntax coloring
- Line numbering
- Line highlighting
- Code block headers
- Code block headers

##### Syntax coloring
To enable syntax coloring, specify a language next to the backticks before the fenced code block.
Expand Down Expand Up @@ -125,6 +125,30 @@ To add a heading, add the attribute `heading` with the heading text as the value
</span>
</include>

##### Using multiple features
You can also use multiple features together, as shown below.

<include src="outputBox.md" boilerplate >
<span id="code">

```` {.no-line-numbers}
```xml {highlight-lines="2" heading="Heading title"}
<foo>
<bar type="name">goo</bar>
</foo>
```
````
</span>
<span id="output">

```xml {highlight-lines="2" heading="Heading title"}
<foo>
<bar type="name">goo</bar>
</foo>
```
</span>
</include>

#### Inline Code
##### Syntax coloring

Expand Down Expand Up @@ -168,4 +192,4 @@ or the java code `public static void main(String[] args)`{.java}.
```
Syntax coloring for inline code: `<bar type="name">goo</bar>`{.xml} too!

</span>
</span>