---
title: "The editor"
nav: "The editor"
description: "The two views, Zoom with Focus and Typewriter, Reveal and Pure, folding, the formatting toolbar, selecting and copying, undo, paste, and the settings that change how the document is shown."
sources: ["0010", "0039", "0040a", "0054", "0067", "0078", "0092", "0121", "0129", "0143", "0148", "0155", "0156", "0158", "0165", "0170", "0174", "0179", "0183"]
section: "Reference"
---

# The editor

One file, two views, and you can edit in either, alone or side by side. The Formatted view is a word processor whose document is plain markdown; its syntax shows at the caret, or never (Pure). Edit one paragraph and every other byte of the file stays as it was.

## Two views

| | |
| --- | --- |
| **Formatted** | WYSIWYG. Markdown syntax is hidden. |
| **Source** | The raw markdown. |
| **Switch** | `⌘R` |
| **Side by side** | The button at the right end of the toolbar opens the other view beside the first. Type in either; the other follows as you type. |

### The Source view while changes show

With Show changes on, the Source view shows a paragraph's wrapped lines as one line, so struck-through text reads as a sentence. Hide changes to see the file's own lines.

- In the paragraph with the caret, each line end shows as a faint `↵`. `↩` adds one; `⌫` just after one removes it.
- A joined line carries the line number of its first line. With changes hidden, every line has its own number.
- Not joined: hard breaks, separate list items, quotes, code, tables and HTML. A list item's own wrapped lines are joined.

## Zoom, Focus and Typewriter

| | |
| --- | --- |
| **Zoom** (`⇧⌘↩`) | This pane alone, text centred. Drag the line at the text's left edge to move it; double-click it to centre again. The outline sits beside the text, or folds into a button in the corner when there is no room. |
| **Focus** (`⌘D` or `F8`) | Dims everything but the block you are in: a paragraph, a list item, a code block, a whole table. |
| **Typewriter** (`⌘T` or `F9`) | Keeps the line you are writing a little above the middle and scrolls the document instead. |

While Focus or Typewriter is on, changes are switched off and comment cards are hidden. Nothing is changed. Commented text keeps its highlight; hover it to read the comment. Show changes or Show comment cards leaves the mode.

Focus and Typewriter are Formatted view only and zoom in first. In the Source view they wait, greyed out, until you come back. Both are remembered until the app closes.

## Reveal at the caret, or Pure

How markdown syntax behaves in the Formatted view. Chosen in the tour, changed in Settings > Editor.

| Mode | Behaviour |
| --- | --- |
| **Reveal at the caret** (default) | Put the caret in a bold word and its `**` appear, editable like any character. Move away and they hide. |
| **Pure** | Syntax never shows. Headings change from the toolbar or `⌘1` to `⌘6`. `⌘B` at the end of a bold word leaves bold. Deleting the last character of a bold word removes its `**` with it. |

The mode changes what is drawn, never what is stored.

## Folding

In the Formatted view, a list item with something under it folds, and so does a heading with its section. A heading folds up to the next heading of the same or a higher level.

| | |
| --- | --- |
| **Fold or unfold** | Hover the row and click the chevron, or click the bullet. Right-click for Fold, Unfold, Fold All and Unfold All. |
| **A folded row** | Ends in `…`, with what it hides, such as `3 changes · 2 comments`. Click that to open it. |
| **Opens by itself** | When the caret, a search result, a link or an edit reaches hidden text. |
| **Remembered** | Per document, after a restart too. A fold that no longer fits the file comes back open. |

- The file is never touched. The Source view does not fold.
- Copying a selection across a fold copies the hidden text too.
- A heading inside a list or a quote does not fold. There is no shortcut.

## Formatting toolbar

On by default (Settings > Editor > Formatting buttons). Buttons light up for what applies at the caret.

| Group | Contents |
| --- | --- |
| **Paragraph style** | Text, Heading 1 to 6 |
| **Text styles** | Bold, italic, strikethrough, code |
| **Lists** | Bulleted, numbered, task, quote |
| **Insert** | Link, image, Excalidraw drawing, code block, math block, divider, alert, table |

In a narrow pane the groups fold into a `...` menu. The Source view has no formatting groups. With Pure mode on, the toolbar is the only visible way to change a heading level or apply a style; typed syntax and the shortcuts still work.

## Keys worth knowing

| Key | Does |
| --- | --- |
| `↩` | Starts a paragraph. |
| `⇧↩` | Breaks a line inside a paragraph. |
| `⌥↑` `⌥↓` | Moves the block the caret is in: a paragraph, a list item, a whole list at its edge. |
| `⇥` `⇧⇥` | Indent and outdent a list item; next and previous table cell. |
| `⌘R` | Switches view. |
| `⌘S` | Saves a version. The file itself saves as you type. |

All shortcuts: [keyboard shortcuts](/docs/reference/keyboard-shortcuts).

## Selecting and copying

- A drag across a bold word grows, on release, to take the `**` on both sides. What you copy, cut or delete is what was highlighted.
- A heading's words pasted on an empty line give a heading at the same level; pasted mid-sentence, the words only.
- Half a bold word copies those characters (in Pure mode, as bold).
- Hidden syntax stays hidden while the mouse button is down.

Comments on the clipboard:

| Pasted into | Carries |
| --- | --- |
| Wymark | The comments on the selected text. |
| Another app | What you saw selected. Comments come along only if their markers were on screen in the Source view. |

To hand over a whole file with its comments: right-click it in the Files panel, **Copy As > Markdown with Comments**.

## Paste

| | |
| --- | --- |
| **`⌘V`** | From a web page, Word or a chat: bold, links, lists and tables are kept as markdown. From a code editor: the text is taken as the markdown it is. |
| **Plain text in the Formatted view** | Line breaks inside a paragraph are written as spaces. To keep the clipboard's lines exactly, paste in the Source view. |
| **Paste as Incoming Change** (`⇧⌘V`) | Pastes the text as a change to review, not as your own typing. After an ordinary paste of outside text, Wymark offers to mark it as incoming. See [Changes from outside Wymark](/docs/guide/changes-from-outside). |

## Undo

| | |
| --- | --- |
| **One `⌘Z`** | A continuous run of typing or deleting. A pause, a change of direction, or a move between the front matter and the body starts a new run. |
| **Accept, reject, comment edits** | On the same stack, in order. |
| **Writes from outside Wymark** | Everything since you last touched the document is one step. |
| **After quitting** | The stack is gone. Restore a version instead. |

## Settings that change the view

| | |
| --- | --- |
| **Size** | View > Zoom In, Zoom Out and Actual Size (`⌘=`, `⌘-`, `⌘0`) scale the whole window. Remembered. Not the same as Zoom (`⇧⌘↩`) above. |
| **Document font** | The system's sans or serif. Settings > Appearance > Document font. |
| **Check spelling** | The system spell checker, Formatted view only. Fenced code is not checked; inline code is. |
| **Text column width** | Drag the divider at the right edge of the editor. Remembered per pane. |
| **Outline tab** | Lists headings. Click to jump. Settings > Editor > Outline depth sets how deep. |
| **Click below the last line** | Caret to the end of the document. Adds nothing. |

For literal `*`, `` ` `` or `#` characters that would otherwise format, use the Source view. See [escapes](/docs/reference/text#escapes).
