Help:Editing: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
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><<nowiki />includeonly /></code> in the opening tag, or (as seen on Wikipedia and many other sites) with <code>&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 <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:


<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
Line 90: Line 90:


<pre<includeonly />>
<pre<includeonly />>
<!-- Comment -->
[[Wiki]] markup &amp; '''bold''' ''italic'' text
</pre>
The <code><<nowiki />pre></code> tag also accepts styling, just like other HTML elements:
<syntaxhighlight lang="wikitext">
<pre<includeonly /> style="color: blue;">
<!-- Comment -->
[[Wiki]] markup &amp; '''bold''' ''italic'' text
</pre>
</syntaxhighlight>
gives
<pre<includeonly /> style="color: blue;">
<!-- Comment -->
<!-- Comment -->