Text and positioning

A text element places a standalone run of text. Text supports multiple lines with \n and can be aligned and positioned:

Multiline text

Open in editor

text "Top\nBottom" align center valign top

Place elements at explicit coordinates with at (x, y):

Positioned caption

Open in editor

Caption: text "Overview" align center at (160, 40)
box "System" at (160, 120)

Text runs can contain escaped characters — a literal quote is \" and a literal backslash is \\:

Escaped text

Open in editor

text "path C:\\tmp - she said \"hello\""

Next: change colours and strokes in Styling.