Difference between revisions of "User:GarveyPatrickD/Combining the nowiki and pre tags"

From Xen
(Testing combinations of <pre> and <nowiki> tags)
(No difference)

Revision as of 23:11, 18 November 2011

Combining the <nowiki> and <pre> tags

Using only one tag

Placing all the tokens on one line in the source

<nowiki>lorem ipsum</nowiki>

lorem ipsum

<pre>lorem ipsum</pre>

lorem ipsum

Placing each token on a separate line in the source

<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 extra vertical spacing in the result.


lorem ipsum