---
title: Snippets – Reusable Content Blocks for Nodinite Articles
description: Create reusable Markdown or HTML Snippets in Nodinite and include them in any Article, Template, or Document Profile with the {nds} token. Covers Insert Snippet, the two-step Create Snippet from Selection dialog, Replace Selection with Snippet, tag merge, and reserved tags.
---

# :fa-puzzle-piece: Snippets

:new7.11:

Write a procedure, header, footer, or disclaimer once, and let every [Article][Articles], [Template][Templates], or [Document Profile][Document Profiles] that needs it include it by reference — edit the Snippet, and every document that includes it shows the change immediately.

* ✅ Reuse the same block of text across unlimited Articles, Templates, and Document Profiles  
* ✅ Update once, apply everywhere the Snippet is included  
* ✅ Turn any existing selection into a new Snippet without leaving the editor  
* ✅ Keep seeded and system tags off Snippets created from a selection  

## :fa-sitemap: Understanding Snippets

A **Snippet** is its own document — it has a title, a slug, [tags][Tags], and a Markdown or HTML body, just like an [Article][Articles]. Snippets are listed under **Repository** > **Snippets**. What makes it a Snippet is how other documents use it: instead of copying its text, they **include** it by reference.

<div class="mermaid">
graph TD
  SnippetA[fa:fa-puzzle-piece Snippet: Standard Footer]
  ArticleA[fa:fa-newspaper Article A]
  ArticleB[fa:fa-newspaper Article B]
  SnippetPartC[fa:fa-list-check Document Profile: Snippet Part]
  ArticleA -- Includes --> SnippetA
  ArticleB -- Includes --> SnippetA
  SnippetPartC -- Shows --> SnippetA
</div>

*One Snippet, included from two Articles and from a Document Profile's Snippet Part. Editing the Snippet updates all three the next time they're displayed.*

| Concept | Behavior |
|---|---|
| Include token | `{nds}/` followed by the Snippet's slug, for example `{nds}/std-footer` |
| Reference target | The slug only. A token with an id, such as `{nds}/27540`, isn't resolved and is reported as an issue, because ids differ between environments while slugs travel with an export |
| Resolution timing | Every time the document is displayed — not copied in at save time |
| Nesting | A Snippet may include other Snippets, up to 5 levels deep. A Snippet that includes itself, directly or in a loop, is cut and reported |
| Macros | Resolved for the document that includes the Snippet — see the [Macros Reference][] |
| Inline icons | A Snippet's text can hold `{ndx}` icons from **Insert Icon**, the same icons as [Component Types][] (requires a [Mapify license][License Options and Feature Matrix]) — see [Inline Icons with {ndx}][Inline Icons] |
| Broken references | A missing or deleted Snippet is flagged in the [Reference Explorer][], under **Relationships** in the reader |
| Deleting | A Snippet that a document includes can't be permanently deleted until the reference is gone |

## :fa-code: Including a Snippet

Type the include token directly, or click **Insert Snippet** to find one without memorizing slugs. The button sits in the toolbar of the HTML editor and above a Markdown editor, and the editor's right-click menu has it too.

![Insert the shipped Standard Footer Snippet into an Article, animated walkthrough (7.13)][7]  
*Animated walkthrough: click **Insert Snippet**, filter on the title, click **Use** on **Standard Footer**, save, and read the Article with the shared footer.*  

1. Place the cursor where the Snippet should appear
2. Click **Insert Snippet**
3. Type in the filter to match the title, or use **Filter on Tag**
4. Click **Use** on the Snippet; its include token is inserted at the cursor, and the preview shows the Snippet's text
5. Click **Save**

![Insert Snippet dialog filtered on Standard Footer, with its slug std-footer and the Use button (7.12)][1]  
*The **Insert Snippet** dialog lists the matching Snippets with their slug and tags. Click **Use** to insert one.*  

```markdown
See the {nds}/std-footer for contact details.
```

*Example of an include token for the shipped **Standard Footer** Snippet, by its slug.*

## :fa-highlighter: Create Snippet from Selection

Turn existing text into a reusable Snippet without leaving the document you're writing. This works in a free-form Article, Snippet, or Template; a section of a [Document Profile][Document Profiles]-based Article has **Insert Snippet** in its own toolbar, but no right-click menu.

![Turn selected Article text into a new Snippet, animated walkthrough (7.12)][8]  
*Animated walkthrough: select the text, right-click, **Create Snippet from Selection**, check the **Title** (the **Slug** follows it; the Article's tags are prefilled), **Next**, and **Create Snippet**. The new Snippet gets the Article's own tags, so **Apply Snippet Tags** doesn't open.*  

1. Select the text to extract
2. Right-click the selection and choose **Create Snippet from Selection**  
   ![Editor right-click menu on selected text with Create Snippet from Selection highlighted (7.12)][6]  
   *The right-click menu: Insert Image from Library, Insert File from Library, Insert Article Link, Insert Snippet, Insert Icon, Create Snippet from Selection, and Replace Selection with Snippet.*  
3. In **Details and Tags**, check the **Title** (suggested from the selection) and the **Slug** that follows it, and optionally adjust the **Tags**. The document's tags are prefilled, except [reserved tag names](#fa-hashtag-reserved-tag-names). **Content Type** is read-only: the new Snippet keeps the Content Type of the editor you selected the text in, HTML or Markdown.
4. Click **Next**
5. In **Review and Create**, confirm the title, slug, type, tags, and content preview
6. Click **Create Snippet**; the selected text is replaced with the new Snippet's include token

![Create Snippet from Selection, Details and Tags, with Title, Slug, Content Type HTML, the tags orders and runbook, and the Selected Text (7.12)][2]  
*The first step, **Details and Tags**: the Title, Slug, tags, and the selected text.*  

![Create Snippet from Selection, Review and Create, with the title, slug, type, tags, and content preview (7.12)][4]  
*The second step, **Review and Create**: check the values and click **Create Snippet**.*  

You need **Create** rights on Articles. The new Snippet is listed under **Repository** > **Snippets**.

### :fa-right-left: Replace Selection with Snippet

From the same right-click menu, choose **Replace Selection with Snippet** when the selected text already matches an existing Snippet. It opens the **Insert Snippet** dialog, and the Snippet you pick replaces the selection with its include token.

![Replace selected Article text with an existing Snippet, including the tag merge, animated walkthrough (7.12)][9]  
*Animated walkthrough: select the text, right-click, **Replace Selection with Snippet**, filter, click **Use**, then **Add Selected Tags** for the Snippet's tag *contacts*, and **Save**. The tag shows in the Article's Tags box at once and is stored with the Article.*  

## :fa-code-merge: Tag Merge

When a Snippet has tags that the document you're editing lacks, **Apply Snippet Tags** opens before the Snippet is inserted. It comes up for **Insert Snippet**, **Replace Selection with Snippet**, and **Create Snippet from Selection**. Each missing tag has a checkbox, ticked by default:

* **Add Selected Tags** adds the ticked tags to the document and inserts the Snippet.
* **Close** cancels an insert or a replace. After **Create Snippet from Selection**, the Snippet already exists, so it's inserted anyway.

![Apply Snippet Tags dialog for the Snippet Contoso server contacts, with the tag contacts ticked (7.12)][3]  
*The **Apply Snippet Tags** dialog: pick the Snippet's tags to add to the Article.*  

## :fa-hashtag: Reserved Tag Names

Some tags carry special meaning — for example, marking a Snippet as a seeded example — and shouldn't spread onto every Snippet an author creates from selected text. **Reserved tag names** (such as `Template`, `Default`, `System`) are never prefilled by [Create Snippet from Selection](#fa-highlighter-create-snippet-from-selection), even if they're present on the source document.

The reserved list is administrator-editable through the [ReservedArticleTagNames][] system parameter, which holds `Template;Default;System` by default. Reserved tag names only affect the automatic prefill — an author can still add one manually, and [Tag Merge](#fa-code-merge-tag-merge) is unaffected.

## :fa-book: Seeded Example Snippets

:Nodinite: installs five example Snippets with the database, ready to copy or study: **Standard Header**, **Standard Footer**, **Standard Copyright**, **Standard Next Step Section**, and **Standard Related Topics Section**, with the slugs `std-header`, `std-footer`, `std-copyright`, `std-next-step`, and `std-related-topics`. Use them as a starting point for your own reusable content, or reference them directly from a [Document Profile][Document Profiles]'s Snippet Part. :new7.12: The **Standard Footer** shows `{{ customername }} · {{ environmentname }} · Nodinite {{ product.version }}`; :new7.13: it ends with a **URL** line from `{{ Article.Url }}`, which shows the address of the Article being read, such as `/Repository/Article/33417`. The **Standard Copyright** reads `© {{ year }} {{ customername }}. All Rights Reserved.` (see [Macros Reference][]).

:new7.12: These Snippets are marked **Shipped by Nodinite** and are locked: you can't edit or delete them, and every :Nodinite: upgrade updates them in place. To change one, clone it and use the copy. Changes made to them before 7.12 are overwritten by the upgrade, so clone an edited one before you upgrade. See [Shipped by Nodinite][].

## :fa-gears: Building Blocks Generated from BizTalk

:new7.12: [Generate Articles from BizTalk][] writes one Snippet per BizTalk port, orchestration, pipeline, and map: a **Building Block**. Integration Articles include them, so a shared artifact is described once. The facts are generated and locked; the **Notes** section is yours, and a note you write shows in every Article that includes the Building Block. See [BizTalk Document Profiles and Section Keys][].

## :fa-hand-point-right: Next Steps

* :fa-clone: [Templates][]  
* :fa-list-check: [Document Profiles][]  

## :fa-link-horizontal: Related Topics

* :fa-newspaper: [Knowledge base Articles][Articles]  
* :fa-key: [ReservedArticleTagNames][]  
* :fa-code: [Macros Reference][]  
* :fa-book-open: [Reading Articles][]  
* :fa-magnifying-glass: [Content Search][]  
* :fa-route: [Consistent documentation — the step-by-step guides for business users][Consistent documentation]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/SnippetPicker.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/CreateSnippetFromSelection_Modal_Step1.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/TagMergeDialog.png
[4]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/CreateSnippetFromSelection_Modal_Step2.png
[6]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/CreateSnippetFromSelection.png
[7]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Snippets_Insert.gif
[8]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Snippets_CreateFromSelection.gif
[9]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Snippets_ReplaceSelection.gif

[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[BizTalk Document Profiles and Section Keys]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/BizTalk%20Articles/BizTalk%20Document%20Profiles%20and%20Section%20Keys.md
[Component Types]:{ndr}/Repository%20Model/Component%20Types/Overview.md
[Consistent documentation]:{ndr}/Getting%20Started/Scenarios/Consistent%20documentation/Overview.md
[Content Search]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Content%20Search.md
[Document Profiles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md
[Generate Articles from BizTalk]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/BizTalk%20Articles/Overview.md
[Inline Icons]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Macros%20Reference.md#fa-icons-inline-icons-with-ndx
[License Options and Feature Matrix]:{ndr}/Repository%20Model/License%20Options%20and%20Feature%20Matrix.md
[Macros Reference]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Macros%20Reference.md
[Reading Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Reading%20Articles.md
[Reference Explorer]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Reading%20Articles.md#fa-magnifying-glass-reference-explorer-and-linked-content-issues
[ReservedArticleTagNames]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ReservedArticleTagNames.md
[Shipped by Nodinite]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Clone%20and%20Shipped%20Documents.md#fa-lock-shipped-by-nodinite
[Tags]:{ndr}/Administration/4.%20Customize/5.%20Tags/Features/What%20is%20a%20Tag.md
[Templates]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Templates.md