Tables and code
Add tables, code samples, simple formulas, embedded media and custom HTML to a Rich Text topic.
All of these tools are in the toolbar of a Rich Text topic. For basic text styles, see Format text.
Tables
Insert a table
- Click where the table should go.
- Select Insert table in the toolbar.
- Move over the grid to choose the number of rows and columns, then click.
Edit a table
Click inside the table. A table toolbar appears above it:
- Column: turn the first column into a Header column, insert a column left or right, delete or select a column.
- Row: turn the first row into a Header row, insert a row above or below, delete or select a row.
- Merge cells: merge selected cells, or split a cell vertically or horizontally.
- Cell properties: set a cell's border, background, padding, size and text alignment.
- Table properties: set the border, background, size and alignment of the whole table.
- Toggle caption on: add a caption under the table.
To change a column's width, drag the border between two columns.

Code blocks
- Click on an empty line.
- Select Insert code block in the toolbar. To pick a language, open the arrow next to the button.
- Type or paste your code. Press
Enterfor new lines inside the block. - To continue with normal text, press
Enterrepeatedly at the end of the block until a new paragraph starts below it.
You can also type ``` on an empty line to start a code block.
Available languages: Plain text, C, C#, C++, CSS, Diff, HTML, Java, JavaScript, PHP, Python, Ruby, TypeScript and XML.
For a short command or file name inside a sentence, use Code instead. See Format text.
Formulas
The editor doesn't have a formula editor. For simple formulas, combine:
- Subscript and Superscript, for example H2O or E = mc2.
- Special characters, whose Mathematical group has symbols such as ±, ≤, ≠, ∑ and √.
For complex equations, insert them as an image. See Add images and videos.
Embed media
- Copy the link to the video or audio, for example a YouTube or Vimeo URL.
- Select Insert media in the toolbar.
- Paste the link into Media URL and confirm.
A playable preview appears in the topic, and readers can play it on the page. YouTube, Vimeo, Dailymotion and Spotify links show a player. See Add images and videos for more on video.
Embed HTML
Use this for a snippet another service gives you, such as a form or a status widget.
- Select Insert HTML in the toolbar.
- Paste the HTML into the box.
- Select Save changes. The editor shows the block as a placeholder, not the finished widget.
- Open Preview to check how it looks to readers.
To change it later, hover over the block and select Edit source.
If something goes wrong
The media link shows no player
Only some services show a player. Check that you pasted the address of the video page itself, not a playlist or a channel. For other services, use Insert HTML with the embed code the service gives you.
The table runs off the page in the PDF
Set the topic's page orientation to Landscape, or reduce the number of columns.