Test Monospace

From Retrosoftware

(Difference between revisions)
Jump to: navigation, search
(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, &amp;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 &amp;nbsp; to represent spaces. Recommended for true mono-space requirements.
 +
 +
''Wikitext code:''
 +
<tt>
<tt>
-
lll ; some comments
+
<nowiki><tt></nowiki><br/>
-
AAA ; some more comments
+
<nowiki>lll ; &amp;nbsp;&amp;nbsp;&amp;nbsp; some comments<br/></nowiki><br/>
 +
<nowiki>AAA ; &amp;nbsp;&amp;nbsp;&amp;nbsp; some more comments </nowiki><br/>
 +
<nowiki></tt></nowiki>
</tt>
</tt>
 +
 +
''Output:''
 +
 +
<tt>
 +
lll ; &nbsp;&nbsp;&nbsp; some comments<br/>
 +
AAA ; &nbsp;&nbsp;&nbsp; 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>
 +
&nbsp;lll ; &nbsp;&nbsp;&nbsp; some comments<br/>
 +
&nbsp;AAA ; &nbsp;&nbsp;&nbsp; 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 ; &nbsp;&nbsp;&nbsp; some comments<br/>
 +
AAA ; &nbsp;&nbsp;&nbsp; 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, &nbsp; 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 &nbsp; to represent spaces. Recommended for true mono-space requirements.

Wikitext code:

<tt>
lll ; &nbsp;&nbsp;&nbsp; some comments<br/>
AAA ; &nbsp;&nbsp;&nbsp; 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