Type /code in TreeNote to turn an item into a code block. A multi-line snippet lives in a single item: Enter adds a line, pasting keeps the block intact, and the text stays monospaced.
A code block changes what Enter, paste and the arrow keys do inside that item. The lines you write stay together instead of becoming siblings, indentation and blank lines survive, and the text is set in a monospace face so it reads as code rather than as prose that happens to contain brackets.
It is the same slash menu you use for headings and links, under Basic blocks. The item keeps its place, its children and its position in the tree — only how it edits and displays changes.
Inside a code block Enter inserts a newline. The block grows downwards and stays one item, so a function, a config file or a stack trace keeps its shape.
A multi-line paste drops in at the caret as raw text. TreeNote will not parse its lines into separate bullets or read its dashes as a list, and the paste is a single undo step — one ⌘Z takes the whole block back out.
ArrowUp and ArrowDown walk through the lines of the block and only leave it from its first and last line. Escape drops out of the text into node selection, where the block moves, indents and deletes like any other item.
A snippet only helps if it survives the outline around it. Holding it in one item means it moves, indents, collapses and mirrors as a single thing — and reads as code instead of as a run of bullets that happen to start with spaces.
Type /code on any item and paste the block in. It stays one item, exactly as you left it.
Try TreeNote today on your own machine. Your outline is stored locally and stays completely private.
Your outline, on every device you use
Sync your TreeNote workspace across devices with your own Google Drive or Dropbox account. Keep your outline current while your files remain in storage you control.
Write markdown. Click away. Read it.
Type /md in TreeNote to turn an item into a markdown block. Write headings, lists, quotes and fenced code inside one item, then click out and it renders as formatted markdown.
Your work keeps moving, even when the signal does not
Work offline in TreeNote with your outline, search and editing tools available on your device. Capture, organise and keep moving without waiting for a connection.
Bring your own AI. Keep control of your work.
Connect your preferred AI provider to TreeNote with your own API key. Ask questions, generate useful edits and review proposed changes before they reach your outline.