Skip to content

Format content in the editor

The editor supports rich text formatting through the toolbar, Keyboard shortcuts, and the Editor slash commands menu.

Inline formatting

Select text and use the formatting toolbar or keyboard shortcuts:

Format

Toolbar

Shortcut

Bold

B button

Cmd+B

Italic

I button

Cmd+I

Strikethrough

S button

Inline code

<> button

Link

Link button

Cmd+K

Block-level formatting

Place your cursor on an empty line and use the toolbar buttons or type / to open the slash command menu:

  • Headings — H1, H2, H3 for document structure

  • Bullet list — unordered items

  • Ordered list — numbered steps

  • Task list — checkboxes for action items

  • Blockquote — indented quotation

  • Code block — syntax-highlighted code with language selection

  • Table — rows and columns with header support

  • Horizontal rule — visual section divider

Use the Editor slash commands for the fastest workflow. Type / followed by a few letters to filter — for example, /code narrows to Code Block and Code Tabs without touching the mouse.

Headings

Use headings to create document structure. The Publish a web site generates a table of contents from your headings.

  • H1 — top-level section (typically one per topic, used as the page heading)

  • H2 — major sections within the topic

  • H3 — subsections within an H2

Lists

Start a bullet list by typing - or * at the beginning of a line. Start an ordered list with 1. . Indent list items with Tab, outdent with Shift+Tab.

Task lists start with - [ ] for unchecked or - [x] for checked items.

Code blocks

Type / and select Code Block. Choose a language from the dropdown for syntax highlighting. The published site adds a copy button to every code block.

For multi-language examples, use Code Tabs (type / and select Code Tabs). Each tab holds a code block in a different language. Readers switch between them.

Code blocks support syntax highlighting for over 100 languages. If your language isn't auto-detected, select it manually from the dropdown in the top-right corner of the code block.

Blockquotes

Type > at the start of a line, or select text and click the blockquote button. Use blockquotes for citations or emphasized passages — for warnings and tips, use Add callouts instead.


See also

Was this page helpful?