Help:Editing: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m →Pre |
||
| 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> | 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;"><includeonly /></code> in the opening tag, or (as seen on Wikipedia and many other sites) with <code style="white-space: nowrap;"><includeonly></includeonly></code>, as follows: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
| Line 90: | Line 90: | ||
<pre<includeonly />> | <pre<includeonly />> | ||
<!-- Comment --> | |||
[[Wiki]] markup & '''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 & '''bold''' ''italic'' text | |||
</pre> | |||
</syntaxhighlight> | |||
gives | |||
<pre<includeonly /> style="color: blue;"> | |||
<!-- Comment --> | <!-- Comment --> | ||