Help:Editing: Difference between revisions

ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
Line 77: Line 77:
</pre>
</pre>


It is also possible to use Wiki markup within <code><<nowiki />pre></code> tags, and have it actually be interpreted as markup instead of being escaped. This can be done by inserting <code style="white-space: nowrap;">&lt;includeonly /&gt;</code> in the opening tag, or (as seen on Wikipedia and many other sites) with <code style="white-space: nowrap;">&lt;includeonly&gt;&lt;/includeonly&gt;</code>, as follows:
It is also possible to use Wiki markup within <code><<nowiki />pre></code> tags, and have it actually be interpreted as markup instead of being escaped. This can be done by inserting an <code>includeonly</code> directive in the opening tag, as <code style="white-space: nowrap;">&lt;includeonly /&gt;</code> or (as seen on Wikipedia and many other sites) <code style="white-space: nowrap;">&lt;includeonly&gt;&lt;/includeonly&gt;</code>, as follows:


<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
Line 95: Line 95:
</pre>
</pre>


The <code><<nowiki />pre></code> tag also accepts styling, just like other HTML elements:
The <code><<nowiki />pre></code> tag also accepts styling, just like other HTML elements. Here, if you use the aformentioned <code>includeonly</code> directive, the styling should come after the directive:
<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
<pre<includeonly /> style="color: blue;">
<pre<includeonly /> style="color: blue;">