Difference between revisions of "Help:Editing"
(→Numbered list) |
(→Numbered list) |
||
| Line 68: | Line 68: | ||
# end finally, do this | # end finally, do this | ||
| − | If you want to add special formatted content, like <nowiki><syntaxhighlight></nowiki> tags within the numbered items, use the following | + | If you want to add special formatted content, like <nowiki><syntaxhighlight></nowiki> tags within the numbered items, use one of the following workarounds to preserve continuous numbering: |
<pre> | <pre> | ||
# Item 1 | # Item 1 | ||
| Line 78: | Line 78: | ||
</pre> | </pre> | ||
| − | Using a HTML comment <!-- --> for the | + | or |
| + | |||
| + | <pre> | ||
| + | # Item 1 | ||
| + | # Item 2<br /><syntaxhighlight lang="xml"> | ||
| + | <Node1>Value1</Node1> | ||
| + | </syntaxhighlight> | ||
| + | # Item 3 | ||
| + | </pre> | ||
| + | |||
| + | Using a HTML comment <!-- --> '''OR''' <br/> for the line break prevents that the numbered list is broken and numbering starts over: | ||
# Item 1 | # Item 1 | ||
# Item 2 <!-- | # Item 2 <!-- | ||
--><syntaxhighlight lang="xml"> | --><syntaxhighlight lang="xml"> | ||
| + | <Node1>Value1</Node1> | ||
| + | </syntaxhighlight> | ||
| + | # Item 3 | ||
| + | |||
| + | or | ||
| + | |||
| + | # Item 1 | ||
| + | # Item 2<br /><syntaxhighlight lang="xml"> | ||
<Node1>Value1</Node1> | <Node1>Value1</Node1> | ||
</syntaxhighlight> | </syntaxhighlight> | ||

