Once a snippet is created, you can insert it into any article or category page using three methods: the merge code syntax (Markdown editor), the toolbar (Markdown editor), or the slash command (Advanced WYSIWYG editor). Snippets can also be translated so that when your articles are read in another language, the snippet content matches.
Insert a snippet into an article
Choose the method that matches your editor.
Using merge code syntax
Type the merge code directly in the Markdown editor. Best when you already know the snippet's merge code value.
Learn more →Using the toolbar
Browse or search for snippets from the Content reuse icon in the toolbar. Works in the Markdown editor.
Learn more →Using the slash command
Type /snippets in the Advanced WYSIWYG editor to open the snippet picker inline without leaving the keyboard.
Learn more →Using merge code syntax (Markdown editor)
In the Markdown editor, type the snippet's merge code value between double curly brackets directly in the content.
Example: {{snippet.snippet name}}
The merge code must match exactly, including capitalisation and spelling. A single character difference will prevent the snippet from rendering.
The merge code syntax only works in the Markdown editor. If you are using the Advanced WYSIWYG editor, insert snippets using the toolbar or slash command.
Using the toolbar (Markdown editor)
- In the article editor, click the Content reuse () icon in the toolbar.
- Select the snippet or use the Search snippets bar to narrow down by name.
- Select the snippet to insert it.
If the Insert as local copy toggle is on, the snippet content added to the article will remain unchanged even if the source snippet is modified or removed in the future.
Using the slash command (Advanced WYSIWYG editor)
- In the Advanced WYSIWYG editor, type
/snippetsto open the Snippets tool in the slash menu. - Use the Search snippet bar to find the snippet you want to insert.
- Hover over a snippet name to preview its full content.
- Click the snippet to insert it. The content is inserted inside a content block highlighted with a dotted outline, distinguishing it from the rest of the article.
- Click inside the snippet block to open the bubble menu.
| Option | Description |
|---|---|
| Dropdown | Switch to a different snippet. |
| Insert as text | Converts the snippet into static content. The snippet tag is replaced with its current text and future updates to the snippet will no longer apply. |
| Delete | Removes the snippet block from the article. |
Translate snippets
You can create snippets in multiple languages so that when your articles are read in a specific language, the matching translated snippet content is displayed.
Global snippets cannot be translated. Only snippets created with a specific language scope support translation.
Translate a new snippet
- Navigate to Content tools () > Content resources > Snippets.
- Click Create.
- In the Create new snippet dialog, enter the snippet name, select the language, and choose your editor. Click Create.
- From the Language dropdown at the top of the editor, select the language for the snippet.
- Enter the content in that language.
- Click the Translate to other languages dropdown, select the languages you want to translate into, and click Translate.
The default language is marked as Main. Translated languages show a green tick once translation is complete. You can manually switch to untranslated languages and add translations as needed.
- Click Save to save with all translations.
Translate an existing snippet
- On the Snippets page, click the name of the snippet you want to translate.
- Navigate to Translate to other languages, select the language, and click Translate.
- To translate into additional languages, select each one and click Translate.
- To overwrite an existing translation, click Translate again.
- To remove a translation for a specific language, click the More () icon and select Clear content from this language.
- Click Update to save.
Best practices
- Preview before inserting. In the Advanced WYSIWYG editor, hover over a snippet name in the slash menu to preview the full content before inserting.
- Use Insert as text with care. Converting a snippet to static text breaks the link to the source snippet. Future updates to the snippet will no longer apply to that instance.
- Translate before publishing. If your knowledge base is multilingual, add translations for new snippets before publishing articles that use them. A missing translation can display inconsistent or fallback content to readers.
- Use the slash command for faster insertion. In the Advanced WYSIWYG editor,
/snippetsis often faster than navigating the toolbar, especially when you know part of the snippet name.
FAQ
Can I use variables inside snippets?
No. Using variables inside snippets is not supported. If you insert a variable within a snippet, it will not render correctly in the editor preview or in exported outputs such as PDF.
Why is a snippet always inserted on a new line?
Snippets are designed as content blocks that can contain multiple lines. They always start on a new line to maintain structure and clarity in the article.
Is there a character limit for snippet content?
No. There is no character limit for snippet body content. You can include as much text, formatting, images, tables, or other supported elements as needed. The only character limit is the Name field, which has a maximum of 50 characters.
Can I change the name of a snippet after it has been created?
No. The snippet name cannot be changed after creation. You can edit the content of a snippet at any time.
How many snippets can I create in one project?
You can create up to 200 snippets per project. Additional snippets can be purchased as an add-on.