User:GarveyPatrickD/Combining the nowiki and pre tags
From Xen
< User:GarveyPatrickD
Revision as of 23:39, 18 November 2011 by GarveyPatrickD (talk | contribs) (Removed one heading level)
Contents
Using only one tag
Placing all the tokens on one line in the source
No leading or trailing whitespace
<nowiki>lorem ipsum</nowiki>
lorem ipsum
<pre>lorem ipsum</pre>
lorem ipsum
Leading and trailing whitespace
<nowiki> lorem ipsum </nowiki>
lorem ipsum
Please note no leading whitespace is used in the result.
<pre> lorem ipsum </pre>
lorem ipsum
Please note additional whitespace, at least leading, is used in the result
Placing each token on a separate line in the source
Please note the result is the same.
<nowiki> lorem ipsum </nowiki>
lorem ipsum
<pre> lorem ipsum </pre>
lorem ipsum
Using both tags
Placing all the tokens on one line in the source
<nowiki> first, then <pre>
<pre> lorem ipsum </pre>
<pre> first, then <nowiki>
lorem ipsum
Placing each token on a separate line in the source
<nowiki> first, then <pre>
<pre> lorem ipsum </pre>
<pre> first, then <nowiki>
Please note the additional vertical spacing in the result.
lorem ipsum