Help:Editing: Difference between revisions

ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
Line 57: Line 57:


==== Pre ====
==== Pre ====
<code><<nowiki />pre></code> defines preformatted text that is displayed in a monospace font and enclosed in a dashed box. HTML-like and wiki markup tags are escaped and spaces and line breaks are preserved, but HTML elements are parsed.
<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>


To use Wiki markup within a <code><<nowiki />pre></code> tag, [[wikipedia:Help:Wikitext#Pre|place an {{plaincode|<<nowiki />includeonly>}} tag]] immediately after the word <code>pre</code>, as follows:
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">