Test Monospace
From Retrosoftware
(New page: <tt> lll ; some comments AAA ; some more comments </tt>) |
(Updated Steve's test page with some examples of how mono-spacing can be achieved on the wiki) |
||
| Line 1: | Line 1: | ||
| + | =Examples of writing up mono-spaced fonts on the wiki= | ||
| + | |||
| + | |||
| + | ===<nowiki>Using the <tt> tag, &nbsp; and <br/> tags</nowiki>=== | ||
| + | |||
| + | Surround the text with <nowiki><tt></nowiki> tags, use HTML line breaks <nowiki><br/></nowiki> at the end of lines, and use the HTML code for a non-breaking space &nbsp; to represent spaces. Recommended for true mono-space requirements. | ||
| + | |||
| + | ''Wikitext code:'' | ||
| + | |||
<tt> | <tt> | ||
| - | + | <nowiki><tt></nowiki><br/> | |
| - | + | <nowiki>lll ; &nbsp;&nbsp;&nbsp; some comments<br/></nowiki><br/> | |
| + | <nowiki>AAA ; &nbsp;&nbsp;&nbsp; some more comments </nowiki><br/> | ||
| + | <nowiki></tt></nowiki> | ||
</tt> | </tt> | ||
| + | |||
| + | ''Output:'' | ||
| + | |||
| + | <tt> | ||
| + | lll ; some comments<br/> | ||
| + | AAA ; some more comments | ||
| + | </tt> | ||
| + | |||
| + | |||
| + | ===Using a single-space to start each line=== | ||
| + | |||
| + | Use a single space at the start of each line, to pre-format the text, in a separate box. Not true mono-spacing. | ||
| + | |||
| + | ''Wikitext code:'' | ||
| + | |||
| + | <tt> | ||
| + | lll ; some comments<br/> | ||
| + | AAA ; some more comments<br/> | ||
| + | </tt> | ||
| + | |||
| + | ''Output:'' | ||
| + | |||
| + | lll ; some comments | ||
| + | AAA ; some more comments | ||
| + | |||
| + | |||
| + | ===<nowiki>Using the <pre> tag</nowiki>=== | ||
| + | |||
| + | Identical output to using a single space at the start of each line, use the <nowiki><pre></nowiki> tag to surround a block of text you want pre-formatted, in a separate box. Similarly, this is not true mono-spacing. | ||
| + | |||
| + | ''Wikitext code:'' | ||
| + | |||
| + | <tt> | ||
| + | <nowiki><pre></nowiki><br/> | ||
| + | lll ; some comments<br/> | ||
| + | AAA ; some more comments<br/> | ||
| + | <nowiki></pre></nowiki> | ||
| + | </tt> | ||
| + | |||
| + | ''Output:'' | ||
| + | |||
| + | <pre> | ||
| + | lll ; some comments | ||
| + | AAA ; some more comments | ||
| + | </pre> | ||
Revision as of 14:10, 3 March 2012
Contents |
Examples of writing up mono-spaced fonts on the wiki
Using the <tt> tag, and <br/> tags
Surround the text with <tt> tags, use HTML line breaks <br/> at the end of lines, and use the HTML code for a non-breaking space to represent spaces. Recommended for true mono-space requirements.
Wikitext code:
<tt>
lll ; some comments<br/>
AAA ; some more comments
</tt>
Output:
lll ; some comments
AAA ; some more comments
Using a single-space to start each line
Use a single space at the start of each line, to pre-format the text, in a separate box. Not true mono-spacing.
Wikitext code:
lll ; some comments
AAA ; some more comments
Output:
lll ; some comments AAA ; some more comments
Using the <pre> tag
Identical output to using a single space at the start of each line, use the <pre> tag to surround a block of text you want pre-formatted, in a separate box. Similarly, this is not true mono-spacing.
Wikitext code:
<pre>
lll ; some comments
AAA ; some more comments
</pre>
Output:
lll ; some comments AAA ; some more comments