Start here
A Selfscribe document is a plain text file. A few lines at its top, the rules block, say what its marks mean, and Selfscribe draws the page from them. This page takes five minutes.
Make a document
#Press Ctrl+N, or New document on Home. Type under the rules block:
~~~ selfscribe
use markdown
~~~
# Shopping
- **bread**
- milk
- eggs
Shopping
- bread
- milk
- eggs
use markdown borrows the built-in Markdown rules, so the usual marks work at once. In the
editor the rules block folds into a small Rules chip. Click it to open it.
Choose how you see it
#The buttons at the top right show the same text five ways. Alt+M steps through them.
| Mode | What you see |
| Source | The plain text, every mark showing. |
| Hybrid | The text drawn as you type. Marks show only where the caret is. |
| Write | The finished page, and you type straight onto it. |
| Preview | The finished page, to read. |
| Split | The text and the page side by side. |
Add a rule of your own
#Open the rules block and add one line under use markdown:
~~~ selfscribe
use markdown
word eggs -> mark
~~~
- bread
- eggs
- bread
- eggs
A rule says where to look (word), what to look for (eggs) and what it becomes (mark).
CSS in braces says how it looks. A line rule takes a whole line, and _ stands for the text
that varies:
~~~ selfscribe
use markdown
line !! _ -> p { color: crimson; font-weight: 700 }
~~~
!! The shop closes at six.
Bring a bag.
The shop closes at six.
Bring a bag.
Name your colours
#Write a colour once in a palette, with a shade for dark pages, and use it anywhere as
var(--name):
~~~ selfscribe
use markdown
palette alert #c92a2a dark #ff8787
line !! _ -> p { color: var(--alert); font-weight: 700 }
word SOLD -> strong { color: var(--alert) }
~~~
!! The ferry is full.
Tickets for Sunday: SOLD out.
The ferry is full.
Tickets for Sunday: SOLD out.
Change the palette line and every rule that uses it follows. The swatch beside a colour in the rules block opens a picker.
Ask what anything is
#Open the Inspector from the rail, the strip of buttons at the edge of the window. Put the caret on anything and the Inspector says what it is, which rule made it and how it looks. On a line of the rules block, it shows everything that rule matches.