Code snippets

Written by
Updated at October 10, 2025

You can add a code snippet to the text of a paragraph or make it a separate block.

In the text

To add a code snippet to the text, use the ` symbol.

`Code snippet` in the text.

Result

Code snippet in the text.

Tip

We recommend using no more than 100 characters, because the text in these fragments doesn't wrap. For a larger number of characters, make the code a separate block.

Separate block

To make a code snippet a separate block, separate it from the rest of the text on both sides with the characters ```.

To highlight the syntax, specify the language in which the code is written in the initial line. For example:

```sql

The list of available languages can be found on GitHub.

Displaying Line Numbers

If you need to enable the line numbers display in the code block, use the keyword `showLineNumbers'.

Usage example:

```sql showLineNumbers
  price= '2000'
  size= '24'  
  color= 'primary'
  variant= 'detailed' 
```

Результат:

1  price= '2000'
2  size= '24'  
3  color= 'primary'
4  variant= 'detailed'