Cheat sheet

8TML > Reference

Every piece of 8TML syntax on one page. Each line links to its full explanation; the same list is the Help window in the editor.

Page

The --- block at the top of every page. More

Write Meaning
---
8tml: 1
title: My page
case: mixed
---
Page header: the first line is ---, 8tml: 1 comes first, the next --- ends it. more
title: My page Page title, shown by the client (top bar, bookmarks). more
case: mixed Keep lower and upper case. The default, case: upper, shows capitals only. more
style: plot.8ss The page’s own stylesheet, relative to the page. more
platform: c64 The machine the page was made for. A hint only; the preview starts on it. more
---
8tml: 1
title: My page
case: mixed
---
The page starts after the header.

Preview: Commodore 64, 40 columns

                                            
The page starts after the header.

Text

Emphasis, tags, line breaks and escapes inside the text. More

Write Meaning
*emphasis* Emphasis (stylesheet key em). more
**strong** Strong (stylesheet key strong). more
<b>strong</b> Strong, the same as **. more
<i>emphasis</i> Emphasis, the same as *. more
<rev>reverse</rev> Reverse: swapped text and background color. more
<yellow><rev>WARNING</> normal Styles add up; </> ends all of them. more
First line\
Second line
A \ at the very end of a line breaks the line. more
One<br>Two <br> breaks the line anywhere in a paragraph. more
First paragraph.

Second paragraph.
A blank line starts a new paragraph. Lines in between are joined. more
&lt; &gt; &amp; &quot; Entities for < > & ". more
A&nbsp;B A space that never wraps or collapses. more
&#65; Any ASCII character by its decimal code (32-126). more
\*not emphasis\* A \ before punctuation prints that character as it is. more
Plain, *emphasis*, **strong** and <rev>reverse</rev>.
A <yellow>yellow</> word, a hard\
line break and &lt;3 escaped.

Preview: Commodore 64, 40 columns

                                            
Plain, emphasis, strong and reverse. A
yellow word, a hard
line break and <3 escaped.

Blocks

The start of a line decides what a block is. More

Write Meaning
# Heading 1
## Heading 2
### Heading 3
Headings; a space after the # is required. more
* First
* Second
Bullet list; - works too. more
1. First
2. Second
Numbered list; numbers count up from the first one. more
* A long item
continues here
A line indented by two spaces continues the item. more
> A quote Quote; consecutive > lines form one quote. more
```
shown exactly
```
Preformatted text: no wrapping, no markup. more
Text above

---

Text below
Separator line; put a blank line before it. more
<center>Centered text <center> at the very start of a block centers it. more
# Heading

* First
* Second

> A quote

---

<center>Centered

Preview: Commodore 64, 40 columns

                                            
Heading

● First
● Second

A quote

────────────────────────────────────────

Centered

Colors

Sixteen color names; each machine shows its nearest color. Black text needs a lighter background. More

Write Meaning
<yellow>text</> Text color: a color tag, closed by </> or </yellow>. more
<black>black</> Black. more
<white>white</> White. more
<red>red</> Red. more
<cyan>cyan</> Cyan. more
<purple>purple</> Purple. more
<green>green</> Green. more
<blue>blue</> Blue. more
<yellow>yellow</> Yellow. more
<orange>orange</> Orange. more
<brown>brown</> Brown. more
<pink>pink</> Pink. more
<darkgrey>darkgrey</> Darkgrey. more
<grey>grey</> Grey. more
<lightgreen>lightgreen</> Lightgreen. more
<lightblue>lightblue</> Lightblue. more
<lightgrey>lightgrey</> Lightgrey. more
<magenta> <gray> <lightred> Aliases: magenta = purple, lightred = pink, gray, darkgray, lightgray. more
<white>white</> <red>red</> <cyan>cyan</> <purple>purple</> <green>green</>
<blue>blue</> <yellow>yellow</> <orange>orange</> <brown>brown</> <pink>pink</>
<darkgrey>darkgrey</> <grey>grey</> <lightgreen>lightgreen</> <lightblue>lightblue</> <lightgrey>lightgrey</>

Preview: Commodore 64, 40 columns

                                            
white red cyan purple green blue yellow
orange brown pink darkgrey grey
lightgreen lightblue lightgrey

Links

Addresses are relative to the page unless they start with http:// or /. More

Write Meaning
[my diary](diary.8tml) A link to another page of your plot. more
[home](index.8tml) Your plot’s home page. more
[back](../index.8tml) Up one folder. more
[the town](http://t8wn.com/) A full address, also to other sites. more
[](http://t8wn.com/) Empty link text shows the address. more
[a <yellow>yellow</> link](news.8tml) Link text may contain tags and escapes. more
[my page](my%20page.8tml) In an address, write a space as %20 and ) as %29. more
Read [my diary](diary.8tml) or go [home](index.8tml).

[](http://t8wn.com/)

Preview: Commodore 64, 40 columns

                                            
Read my diary or go home.

http://t8wn.com/

Forms

Fields go inside a :::form block, one per line. More

Write Meaning
:::form post send.php
? text name max=20 Your name
? submit go Send
:::
A form block: :::form METHOD URL, the fields, then :::. more
? text name max=20 Your name One-line text field, max characters. more
? password pw max=16 Password Text field shown masked; use post. more
? area msg rows=3 max=200 Message Multi-line text field. more
? check notify value=yes Tell me more Checkbox; checked ticks it. more
? radio mach value=c64 checked C64
? radio mach value=zx ZX Spectrum
Radio buttons: one choice per name. more
? select from Found me via
+ town T8wn
- plot A friend's plot
List box; + marks the preselected option. more
? hidden token value=a81f Sent but not shown. more
? submit go Send
? reset clear Start over
Buttons that send or reset the form. more
:::form post send.php
? text name max=20 Your name
? check again value=yes I will come back
? submit go Send
:::

Preview: Commodore 64, 40 columns

                                            
Your name [____________________]
[ ] I will come back
< Send >

Styles

Stylesheet keys, for a .8ss file or the page header. More

Write Meaning
bg: blue
border: lightblue
Screen background and border (one color each). more
text: white Normal text. more
h1: yellow center Headings: h1, h2, h3. more
em: cyan
strong: white
Emphasis and strong. more
link: yellow
link-sel: cyan reverse
Links, and the selected link. more
quote: cyan
pre: lightgreen
rule: red
Quotes, preformatted text, separators. more
field: white
field-sel: cyan reverse
Form fields, and the selected field. more
h2: white reverse upper Style words: reverse, center, upper, with at most one color. more
c64.border: blue A machine prefix: this key applies on that machine only. more
case: mixed Upper or mixed case, as in the page header. more
---
8tml: 1
case: mixed
bg: blue
border: lightblue
h1: yellow center
link: yellow
---
# A heading

Text with a [link](index.8tml).

Preview: Commodore 64, 40 columns

                                            
A heading

Text with a link.