Thanks Paul.
Guys, I need your advice once more: Currently, examples are extracted from the "examples:" section in documentation, and what's between <pre> </pre> tags gets put into a .cxs file in docs/html/examples. So far so good. But (!) if an example section contains more than one <pre> block, everything between the first opening tag and the last closing tag is considered one example. E.g:
For
HTML:
<pre>
Print "Hello World"
</pre>
<pre>
Print "That's how you concatenate "+2+" strings"
</pre>
the resulting _example.cxs becomes:
Code:
Print "Hello World"
</pre>
<pre>
Print "That's how you concatenate "+2+" strings"
Which is obviously not valid CX code and could confuse CX beginners.
Now I consider these options:
- Ignore, because there should never be multiple examples to one identifier
- Only put the first pre block into an _example.cxs
- Put both pre blocks into different _example.cxs
What do you think?