Text
Type anywhere to add text. There is no text tool: with nothing selected, the text appears at the mouse; with a shape selected, it goes inside the shape.
Text grows as you type, wider and then taller. When it outgrows its shape, the shape stretches to fit, and the shape’s neighbours are pushed aside to make room.
Font size and family
Section titled “Font size and family”A bigger font size, or a wider font family, stretches the shape around the text in the same way. Shrinking the text again does not shrink the shape back.
Wrap width
Section titled “Wrap width”Wrap width is the widest a line of text may be. Words that do not fit wrap onto the next line, and each paragraph or list item wraps on its own. Lines you break yourself with Enter always stay separate lines.
Select a text and drag the blue zigzags at its side to change the wrap width. Narrower text re-wraps onto more lines, and the shape stretches taller to fit. The width can also be typed into the inspector.
Editing
Section titled “Editing”- Start typing with nothing selected to add a text block at the mouse. With a shape selected, the text goes inside it; with an icon selected, it becomes the icon’s caption.
- Double-click a text block to edit it with everything selected, or select it and press Enter to place the caret at the end.
- Enter starts a new line in the same block.
- Escape (Escape) or a click elsewhere on the canvas finishes editing. A text left empty is removed, and Backspace in an empty text removes it straight away.
- Tab (TabShiftTab) also finishes editing and leaves the text selected — except on a list item, where Tab and Shift+Tab nest and unnest the item.
- The arrow keys carry on into the neighbouring block when the caret is already at the edge of the text.
Formatting
Section titled “Formatting”A text block holds as many lines as you like, and markdown formats them: headings, bullet and
numbered lists, code, bold and italic all live inside one block. The editor applies the markdown as
you type: **bold** turns bold the moment you close it, and - at the start of a line becomes a
bullet. The examples below show the markdown on the left and the block it produces on the right.
The full syntax:
| You type | You get |
|---|---|
**text** or __text__ |
bold |
*text* or _text_ |
italic |
`text` |
code in a monospace face |
# , ## , ### at the start of a line |
a heading, largest to smallest |
- , * or + at the start of a line |
a bullet point; two more spaces nest it |
1. at the start of a line |
a numbered item; the numbers count on from the first |
a line of ``` before and after |
a code block, kept exactly as written |
a backslash before *, _, `, # or - |
that character itself |
Headings scale from the block’s font size, and bold uses the family’s bold weight. Everything else about the text — its family, size, colour, letter spacing and alignment — is set for the whole block in the inspector.
Text in files and for agents
Section titled “Text in files and for agents”The markdown is what a .nifdi.svg file stores as the block’s words, and what the
MCP tools read and write with get_diagram, set_text and insert. An agent
that writes - nginx\n- node into a <text> element gets the same two-item list a person gets by
typing it.