Add snippets in content

Add snippets to articles or categories to add reusable text or code to them.

The information below varies based on whether you're using our 2026 new editor or old editor.

To figure out which instructions to follow:

  1. Open any article for editing.
  2. If the lefthand navigation is collapsed and there's a link near the top of the page to Switch to old editor, follow the New editor documentation.
  3. If the lefthand navigation is expanded and the top of the editor and the righthand column have a heavier grey background, follow the Old editor documentation.

Here are side-by-side examples of the new editor and the old editor:

The new article editorSample New editor
The old article editorSample Old editor

Try out the new editor
We'd love your feedback on the new editor. To switch to the new editor, open any article for editing and select the Switch to new editor link at the top of the editor.

To add a snippet in the new article editor:

  1. Open the article for editing.
  2. In the editor toolbar controls, select Insert > Snippet. The Add Snippet modal opens.
  3. Enter part of the snippet's name; the window will autosuggest snippets as you type.
  4. Select the suggestion that matches it. Once you select a snippet, the Snippet Description and the first few lines of Snippet Content display so you can be sure you've selected the correct snippet. (No Description displays if the snippet you've entered doesn't have one.)
  5. Once you're sure you've selected the correct snippet, select Insert Snippet. This closes the modal and inserts the snippet's Merge Code into your article, like this:
    Lorem ipsum dolor sit amet, duo utamur copiosae torquatos ad, sale virtute vituperata ne cum, id quo aliquando adolescens argumentum.
    
    {{snippet.copyrightInfo}}
  6.  Once you Save your changes, a reader will see the body of the snippet (if it's text) or the results of the code in it. For example, here's our copyright Info snippet:

Copyright © 2015 – 2026 Silly Moose, LLC. All rights reserved.

These documents are a static export of a dynamic knowledge base. For the most up-to-date information, head to our knowledge base.

To add a snippet in the old article editor or the custom content category editor:

  1. Select the Insert Snippet control (two gear cogs icon) from the editor toolbar:
    The WYSIWYG control panel in the article editor. The Insert Snippet icon is selected and an arrow points to it.The Insert Snippet control in the editor
    The Add Snippet modal opens.
  2. Enter part of the snippet's name; the window will autosuggest snippets as you type.
  3. Select the suggestion that matches it. Once you select a snippet, the Snippet Description and the first few lines of Snippet Content display so you can be sure you've selected the correct snippet. (No Description displays if the snippet you've entered doesn't have one.)
  4. Once you're sure you've selected the correct snippet, select Insert Snippet. This closes the modal and inserts the snippet's Merge Code into your article, like this:
    Lorem ipsum dolor sit amet, duo utamur copiosae torquatos ad, sale virtute vituperata ne cum, id quo aliquando adolescens argumentum.
    
    {{snippet.copyrightInfo}}
  5.  Once you Save your changes, a reader will see the body of the snippet (if it's text) or the results of the code in it. For example, here's our copyright Info snippet:

Copyright © 2015 – 2026 Silly Moose, LLC. All rights reserved.

These documents are a static export of a dynamic knowledge base. For the most up-to-date information, head to our knowledge base.