# The page editor

> A reference for writing Docs pages — the toolbar, the / slash menu, keyboard and Markdown shortcuts, headings, lists and checklists, tables, code blocks, panels and decisions, links, mentions and task chips.

Source: https://docs.sofiaspace.uz/docs/editor/

The Docs editor works like a modern word processor. Format text from the toolbar at the top, type **/** for a menu of blocks, select text for a small formatting bar, or use keyboard and Markdown shortcuts you may know from other tools. This page is a reference for everything the editor can put on a page. Images and files are covered in [Images and file attachments](https://docs.sofiaspace.uz/docs/images-and-attachments.md) and diagrams in [Diagrams](https://docs.sofiaspace.uz/docs/diagrams.md).

**Who can do this:** anyone with edit access to the page (space **Editor** or **Admin**, or **Can edit** on the page). Choose **Edit** on the page to start. Available on every plan.

## The toolbar

| Control | What it does |
| --- | --- |
| **Text style** | **Paragraph** or **Heading 1** to **Heading 6** |
| **Bold**, **Italic**, **Underline** | Character formatting (see shortcuts below) |
| **Inline code** | Monospace text inside a sentence |
| **Subscript**, **Superscript** | Small lowered or raised text, such as H₂O or x² |
| **Align left**, **Align center**, **Align right**, **Justify** | Paragraph alignment |
| **Bullet list**, **Numbered list**, **Checklist** | Lists (see below) |
| **Link** | Add, change or remove a link on the selected text |
| **Table** | Insert a 3×3 table with a header row |
| **Image** | Upload an image |
| **Attach** | Attach one or more files |
| **Attachments** | Insert a list of this page's files |
| **Space files** | Insert a list of files from across the space |
| **Code** | Insert a code block |
| **Divider** | Insert a horizontal line |
| **Decision** | Insert a decision callout |
| **Panel** | Insert a coloured panel |

![A page open for editing: the toolbar with Paragraph, text formatting, lists, Checklist, alignment, Link, Table, Image, Attach, Code, Divider, Decision and Panel; Your draft · saved, Discard draft and Publish at the top right.](../../../assets/screenshots/docs-editor.webp)

## The / slash menu

Type **/** anywhere and keep typing to filter, then press Enter or click an item:

**Heading 1**, **Heading 2**, **Heading 3**, **Bulleted list**, **Numbered list**, **Checklist**, **Quote**, **Code block**, **Divider**, **Table**, **Decision**, **Info panel**, **Note panel**, **Warning panel**, **Success panel**, **Error panel**, **Attachments list**, **Space attachments list**.

*No matching commands* means nothing matches what you typed; press Backspace to widen the search or Esc to close the menu. Images, files and links are inserted from the toolbar.

## The selection bar

Select some text while editing and a small bar appears over it with **Bold**, **Italic** and **Link**. Depending on the page and your workspace it can also show:

- **Create task**: turn the selected text into a task and add a link chip to it right after the selection (see [Docs and tasks together](https://docs.sofiaspace.uz/docs/docs-and-tasks.md)),
- **Comment**: comment on the selection, on pages that publish automatically (see [Comments on pages](https://docs.sofiaspace.uz/docs/comments.md)).

## Keyboard shortcuts

On Windows and Linux use Ctrl where the table says ⌘.

| Action | Shortcut |
| --- | --- |
| Bold | ⌘B |
| Italic | ⌘I |
| Underline | ⌘U |
| Strikethrough | ⌘⇧S |
| Inline code | ⌘E |
| Code block | ⌘⌥C |
| Quote | ⌘⇧B |
| Bullet list | ⌘⇧8 |
| Numbered list | ⌘⇧7 |
| Undo / redo | ⌘Z / ⌘⇧Z |

Strikethrough has no toolbar button; use the shortcut.

## Markdown shortcuts

Type these at the start of a new line, followed by a space:

| Type | You get |
| --- | --- |
| `#`, `##`, `###` … | Heading 1, 2, 3 … |
| `-` or `*` | Bullet list |
| `1.` | Numbered list |
| `[ ]` | Checklist item |
| `>` | Quote |
| ```` ``` ```` | Code block |
| `---` | Divider |

Inside a line, `**text**` makes bold, `*text*` italic, `~~text~~` strikethrough and `` `text` `` inline code.

## Lists and checklists

- Press Tab to indent a list item one level, Shift+Tab to move it back out.
- Press Enter twice to end a list.
- Checklist items are ticked while editing. In the read view, boxes show as they were last saved and can't be clicked. Checklist items can be nested.
- In the read view, hovering a checklist item shows **Create task from this item**. See [Docs and tasks together](https://docs.sofiaspace.uz/docs/docs-and-tasks.md).

## Tables

**Table** (toolbar or slash menu) inserts a 3×3 table with a header row. Drag a column's edge to change its width.

With the cursor in a table, the table toolbar offers:

| Button | Does |
| --- | --- |
| **Insert column left** / **Insert column right** | Add a column |
| **Delete column** | Remove the current column |
| **Insert row above** / **Insert row below** | Add a row |
| **Delete row** | Remove the current row |
| **Header row** | Turn the first row's header style on or off |
| **Header col** | Turn the first column's header style on or off |
| **Delete** | Remove the whole table |

Press Tab to move to the next cell; Tab in the last cell adds a row.

## Code blocks

**Code** (or **Code block** in the slash menu, or ```` ``` ```` and a space) inserts a block for code. Syntax highlighting is automatic. To fix the language, pick it from the dropdown in the block's top-right corner; **Auto** goes back to detection. Highlighting is available for Bash, CSS, Go, Java, JavaScript, JSON, Markdown, Python, SQL, TypeScript, XML/HTML and YAML; other languages show as plain text.

## Panels and decisions

- **Panel** inserts a coloured box for a callout. Pick its kind (**Info**, **Note**, **Warning**, **Success** or **Error**) when inserting from the slash menu, or change it later from the panel's **Panel kind** menu. A panel can hold paragraphs, lists and other blocks.
- **Decision** inserts a callout headed *Decision*, for recording what was agreed.

## Quotes and dividers

- **Quote** formats a block as a quotation.
- **Divider** draws a horizontal line between sections.

## Links

1. Select the text and choose **Link** in the toolbar or the selection bar.
2. Paste or type the address and confirm. If you leave out `https://`, it's added for you. Email links starting with `mailto:` work too.
3. To change or remove a link, select it and choose **Link** again.

Typing or pasting a web address makes it a link automatically. A link ends where the address ends: text you type straight after it isn't added to the link. In the editor, clicking a link doesn't open it, so you don't leave the page by accident; in the read view it opens normally.

### Links to pages and tasks

Paste the address of a Sofia Space page or task and it becomes a chip showing the item's title or key. A reader who can't open that item sees a lock instead of the title.

You can also type a task's key, such as `WEB-12`, followed by a space, Enter or punctuation. If that task exists and you can open it, the key turns into a task chip. Lowercase works too (`web-12`). A key inside code, inside an existing link, or text that only looks like a key (such as `UTF-8`) stays as text. Keys you've already typed aren't changed later, so to link an old one, delete its last character and type it again.

The pages you link to list your page under **Linked from**; see [Spaces and pages](https://docs.sofiaspace.uz/docs/spaces-and-pages.md).

## Mentions

Type **@** and start typing a name to mention a person, or a team by its `@handle`. The mention shows as a name chip. Mentions in a page don't send notifications; tell people in chat or a task if they need to look.

## On this page

Headings build the **On this page** outline beside the read view, so readers can jump between sections. Use headings in order (Heading 1, then Heading 2 under it) to keep the outline tidy.

## What you can't do

- You can't change font, font size or text colour, or highlight text.
- You can't embed videos, web pages or other sites; add a link instead.
- You can't merge or split table cells.
- You can't add footnotes, a table of contents block, or columns.
- You can't use the slash menu to insert images, files or links; use the toolbar.

## Related

- [Images and file attachments](https://docs.sofiaspace.uz/docs/images-and-attachments.md)
- [Diagrams (draw.io and BPMN)](https://docs.sofiaspace.uz/docs/diagrams.md)
- [Drafts, publishing and live editing](https://docs.sofiaspace.uz/docs/drafts-and-live-editing.md)
- [Comments on pages](https://docs.sofiaspace.uz/docs/comments.md)
