Code and math

Code and math are block types, so they sit in the flow of the note rather than inside a paragraph. A code block carries a language picker and highlighting that follows your theme; a math block is LaTeX rendered as you type. Both keep their source in the note and survive export.

At a glance

Code block
Source plus a language picker
Math block
LaTeX, rendered as you type
Highlighting
Follows the light or dark theme
On export
Fenced code, raw LaTeX

Add code

  1. Add the block

    Code

    Tap + in the editor's bottom bar and choose Code. The block arrives with a language button already set.

  2. Pick the language

    Language

    The button in the block's corner names the language in use — js out of the box. Tap it to change languages; Timeline ships highlighting for around fifty, from C and Python to Rust, Kotlin, Go and SQL.

  3. Type the code

    Text

    Type into the field and the colours follow. Nothing runs — this is a note, not a console.

A code block in Timeline reading const total = 42 with coloured syntax, a js language button and a bin in its corner
The language button sits top left of the block, the bin top right.

Highlighting adapts to the theme — a light scheme in the light theme and a dark one in the dark theme — and updates as you type.

Add math

  1. Add the block

    Math

    Tap + and choose Math. The block is labelled LaTeXand starts with a sample equation so you can see it render.

  2. Write the LaTeX

    LaTeX

    Write LaTeX in the field and Timeline renders it as you go. Every block is one equation.

  3. Edit or remove

    Pencil

    The pencil switches between the rendered equation and its source; the bin removes the block. The same two buttons sit on a code block.

A LaTeX block in Timeline showing a rendered equation with a pencil to edit it and a bin to remove it
The block renders as you type; the pencil swaps in the LaTeX source.

In the export

BlockWritten out as
CodeA fenced Markdown block
MathThe LaTeX itself

Both are text, so neither loses anything on the way through export.