Help:Editing: Difference between revisions
ArrowHead294 (talk | contribs) |
ArrowHead294 (talk | contribs) m →Pre |
||
| Line 57: | Line 57: | ||
==== Pre ==== | ==== Pre ==== | ||
<code><<nowiki />pre></code> | <code><<nowiki />pre></code> tags define preformatted text that is displayed in a monospace font and enclosed in a dashed box. It doubles as both a parser tag and an HTML tag, since the parser will escape all HTML-like and wiki markup tags and preserve spaces and line breaks, but HTML elements are parsed. | ||
For example: | For example: | ||
| Line 77: | Line 77: | ||
</pre> | </pre> | ||
It is also possible to use Wiki markup within a <code><<nowiki />pre></code> tag, and have it actually be interpreted as markup instead of being escaped. This can be done using a [[wikipedia:Help:Wikitext#Pre|self-closing {{plaincode|<<nowiki />includeonly>}} tag]], as follows: | |||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||