---
title: Compare Articles and Revisions Side by Side in Nodinite
description: Compare two Nodinite Articles, Snippets, Templates, or Document Profiles side by side, or two revisions of the same document. Step through revisions on each side, compare Content Parts, and switch to an inline Lines, Words, or Chars view.
---

# :fa-code-compare: Compare Articles

:new7.12:

See exactly what changed. The compare tool puts two documents, or two revisions of the same document, next to each other and marks every changed line, so you can review an edit, check what a rewrite removed, or see how two runbooks differ before you merge them by hand.

* ✅ Compare two revisions of an [Article][Articles], or any revision against the current text  
* ✅ Compare two different documents, even an Article against a [Snippet][Snippets]  
* ✅ Step through the revisions on each side without leaving the tool  
* ✅ Switch between side-by-side panes and an inline Lines, Words, or Chars view  

![Compare a Contoso O2C runbook revision with the current text side by side, then inline with Words, stepping back to Revision 1, animated walkthrough (7.12)][6]  
*Animated walkthrough: a runbook from the [Order-to-Cash demo][] compared from its **History** card, from side by side to the inline Words view of its oldest revision.*  

1. In the Article editor, click a revision in the **History** card, here **Revision 3**, and click **Compare side by side** in the [revision dialog][Revision History - Revision dialog].
2. The compare tool opens with Revision 3 on the **LEFT** and the **Current** text on the **RIGHT**, in aligned panes.
3. Click **Inline**, then **Words**: one text, with the changed words marked.
4. Click **‹** (older) on the left side: it now shows Revision 2.
5. Click **‹** again: Revision 1, the oldest, so **‹** is disabled. The inline Words view shows everything that changed since Revision 1.

## :fa-sitemap: Understanding the Compare Tool

The compare tool is one read-only dialog with a left and a right side. Each side shows one document at one point in time: its **Current** text, or one of its stored revisions from the [Revision History][]. You open the dialog from five places, and each one fills in the sides for you.

<div class="mermaid">
graph LR
  RevModal[fa:fa-code-branch Revision dialog<br/>Compare side by side]
  WithSel[fa:fa-list-check With Selected<br/>Compare 2]
  RowAction[fa:fa-ellipsis-vertical Action<br/>Compare...]
  History[fa:fa-clock-rotate-left History card<br/>Compare]
  Reader[fa:fa-book-open Reader page<br/>Compare]
  Compare[fa:fa-code-compare Compare dialog]
  Left[fa:fa-file Left side<br/>document + revision]
  Right[fa:fa-file Right side<br/>document + revision]
  RevModal --> Compare
  WithSel --> Compare
  RowAction --> Compare
  History --> Compare
  Reader --> Compare
  Compare --> Left
  Compare --> Right
  style RevModal fill:#2678BD
  style WithSel fill:#2678BD
  style RowAction fill:#2678BD
  style History fill:#2678BD
  style Reader fill:#2678BD
  style Compare fill:#93d16d
  style Left fill:#3F827B
  style Right fill:#3F827B
</div>

*Blue are the five ways in: the revision dialog of the [History card][Revision History], **With Selected** on the lists ([Bulk Actions][]), a row's **Action** menu, the editor's **History** card, and the [reader page][Reading Articles]. Green is the compare dialog; teal are its two sides.*

| Part | What it does |
| --- | --- |
| **Side header** | **LEFT** or **RIGHT**, the document's title, and its kind ([Article][Articles], [Snippet][Snippets], [Template][Templates], [Document Profile][Document Profiles]) |
| **Revision picker** | Chooses *Current* or any stored revision ([Revision History][]) for that side; **‹** and **›** step one revision at a time |
| **Info line** | Under the picker: *Current text · changed … by …*, or *Revision 4 (4 of 6) · … by …* with a **Profile changed** badge when that save changed the [Document Profile][Document Profiles], plus the size of the text |
| **Change** | Picks another document for that side: **Article…**, **Snippet…**, **Template…**, or **Document Profile…** |
| **Tabs** | *Whole document (composed)*, plus one tab per Content Part when both sides follow the same [Document Profile][Document Profiles] |
| **View** | **Side by side** (default) or **Inline** with **Lines**, **Words**, or **Chars** |
| **Change navigation** | **˄** and **˅** jump to the previous or next change; the counter shows which change you're on, out of how many |
| **Ignore whitespace** | Differences in spaces and tabs are not marked; works in **Side by side** and in **Inline** with **Lines** or **Words** |
| **Show hidden characters** | Draws spaces, tabs, and line ends in the panes |
| **Swap sides** | Switches the left and right sides |

The compare tool only reads. It never changes a document, so anyone who can read the documents in the Repository can use it. To take text back from a revision, use **Restore** or **Clone from this revision** in the [revision dialog][Revision History - Revision dialog].

## :fa-door-open: Open the Compare Tool {#open-the-compare-tool}

| Where | Click | Left side | Right side |
| --- | --- | --- | --- |
| Revision dialog ([History card][Revision History - Revision dialog] > a revision) | **Compare side by side** | The revision you opened | Current |
| [Articles][], [Snippets][], [Templates][], or [Document Profiles][] list | Tick exactly two rows, then **With Selected** > **Compare (2)** | The first ticked document, Current | The second ticked document, Current |
| Same lists | A row's **Action** > **Compare…** | That document, Current | The document you pick |
| [Article editor][Add or manage Article] | **Compare** in the **History** card header | This document, Current | The document you pick |
| Reader page ([Reading Articles][]) | **Compare** in the header | This document, Current | The document you pick |

**Compare (2)** appears on the **With Selected** menu only when exactly two rows are ticked.

![With Selected menu with two Articles ticked and Compare (2) as the last item (7.12)][3]  
*Tick two documents to compare their current text in one step.*  

To put another document on a side, click **Change** in that side's header and choose the kind: **Article…**, **Snippet…**, **Template…**, or **Document Profile…**. Then pick the document. Any two kinds can be compared, such as an Article against a Snippet.

![Change menu of a compare side with Article, Snippet, Template, and Document Profile (7.12)][4]  
*Choose the kind first; you can compare an Article with a Snippet, a Template, or another Article.*  

## :fa-code-compare: Side by Side {#side-by-side}

**Side by side** is the default view. The two texts sit in aligned panes, read only, with line numbers, and every changed line is marked. The line above the panes reminds you how to read them: *Removed lines are what the left has and the right does not.* Long unchanged stretches fold into **(…)**, so the changes stay in view.

![Compare dialog side by side for a packing runbook, left Revision 2 of 3 and right Revision 3 of 3, with the changed carrier line marked on both sides (7.12)][1]  
*Each side states which revision it shows, when it was saved, by whom, and how big the text is.*  

Click **˅** to jump to the next change and **˄** to the previous change; the counter, such as *1 / 3*, shows where you are.

Two toggles next to the change navigation help with text that differs only in layout:

* :fa-text-slash: **Ignore whitespace** stops marking differences in spaces and tabs, so reindented or retabbed lines don't hide the real changes. It also applies to the **Inline** view in the **Lines** and **Words** modes.  
* :fa-flashlight: **Show hidden characters** draws spaces, tabs, and line ends in the panes, so you can see why two lines that look the same are marked as changed.  

The divider between the panes works like the split editors elsewhere in :Nodinite:, such as the [Stylesheet][Stylesheets] and [Custom Metadata][] editors:

* Drag the divider to give one pane more room.  
* **Toggle Horizontal/Vertical Mode** stacks the panes on top of each other, or puts them side by side again.  
* **Maximize** gives the panes the whole dialog.  

Your ratio and orientation are remembered for you, like every other split.

When the two texts are identical, the dialog says **Identical.** above the panes and still shows both texts.

## :fa-list: Inline View {#inline-view}

Switch the view to **Inline** to read the changes as one marked-up text, like the inline diff in the revision dialog. Choose how fine-grained the marking is:

| Mode | Marks | Greyed out when |
| --- | --- | --- |
| **Lines** | Whole changed lines | Never |
| **Words** | Changed words inside a line | A text is longer than 40,000 characters |
| **Chars** | Changed characters | A text is longer than 10,000 characters |

A greyed-out mode can't be chosen; its tooltip says why.

![Compare dialog in the Inline view with Words selected, Revision 2 against Revision 3, the removed and added words marked inside the line (7.12)][2]  
*Words is the easiest mode for prose; Chars catches a single changed digit in a version number or an id.*  

## :fa-clock-rotate-left: Step Through Revisions {#step-through-revisions}

Each side has its own revision picker. Choose *Current* or any stored revision, newest first, each with its time and author. Click **‹** (older) or **›** (newer) to move one revision at a time and watch the changes follow.

![Revision picker of the left side opened, listing Current, Revision 2, and Revision 1, each with time and author (7.12)][5]  
*Pick any revision for either side; the side header updates to show which one you're on.*  

The same text is never on both sides. When both sides show the same document, the revision chosen on the right is left out of the left side's picker, and **‹** and **›** step over it, and the other way round. In the screenshot above, the right side shows Revision 3, so the left side's picker skips it. Two different documents have no such limit.

Click **Change** on a side to compare against another document, and **Swap sides** in the footer to switch left and right.

## :fa-puzzle-piece: Compare Content Parts {#compare-content-parts}

The *Whole document (composed)* tab compares the full text, [Main Body][] and every Content Part, as one document. When both sides follow the same [Document Profile][Document Profiles], the dialog adds one tab per Content Part, so you can compare one section at a time. A part that exists on only one side is labelled *(not on the left)* or *(not on the right)*.

Two documents on different Document Profiles, or without one, are compared on the composed text only.

Comparing two Document Profiles compares their structure: the description, then one line per Part with its kind, name, Snippet token or Section Key, whether it's required, and the Main Body. Use it to see what a profile change added or removed.

## :fa-question: Frequently Asked Questions

### Can I change the text in the compare tool?

No. The compare tool only reads. To bring back text from a revision, open the revision from the **History** card and choose **Restore whole document**, or **Clone from this revision** to start a new document from it. See [Revision History][Revision History - Revision dialog].

### Why is Compare (2) missing from With Selected?

It appears only when exactly two rows are ticked. Untick the others, or use the row's **Action** > **Compare…** and pick the second document.

### Why are Words and Chars greyed out? {#why-are-words-and-chars-missing}

One of the texts is too long for that mode: Words is greyed out above 40,000 characters and Chars above 10,000, and the tooltip says so. Use **Lines**, or the **Side by side** view.

### Why are two lines marked as changed when they look the same?

They differ in spaces, tabs, or line ends. Turn on **Show hidden characters** to see the difference, or **Ignore whitespace** to stop marking it.

### Why don't I see Content Part tabs?

The two documents don't follow the same [Document Profile][Document Profiles]. The dialog then compares the composed text only.

### Can I compare revisions that I purged?

No. [Purge revisions][Revision History - Purge] removes them for good, so they're no longer listed in the revision picker.

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

* :fa-clock-rotate-left: [Revision History][] – Restore a revision or clone a new document from it  
* :fa-list-check: [Bulk Actions][] – Compare (2) and the other With Selected actions  
* :fa-newspaper: [Add or manage Article][]  

## :fa-link-horizontal: Related Topics

* :fa-newspaper: [Knowledge base Articles][Articles]  
* :fa-book-open: [Reading Articles][]  
* :fa-list: [Articles Overview][]  
* :fa-newspaper: [Manage Articles][]  
* :fa-puzzle-piece: [Snippets][]  
* :fa-clone: [Templates][]  
* :fa-list-check: [Document Profiles][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Compare_Revisions.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Compare_Inline_Words.png
[3]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Overview_WithSelected_CompareMenuItem.png
[4]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Compare_ChangeDocument_Picker.png
[5]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Compare_RevisionPicker.png
[6]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/Articles/Articles_Compare.gif

[Add or manage Article]:{ndr}/Getting%20Started/4.%20Repository/Articles/Add%20or%20manage%20Article.md
[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[Articles Overview]:{ndr}/Getting%20Started/4.%20Repository/Articles/Overview.md
[Bulk Actions]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Bulk%20Actions.md
[Custom Metadata]:{ndr}/Repository%20Model/Custom%20Metadata/Overview.md
[Document Profiles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md
[Main Body]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md#fa-pen-writing-the-content-parts
[Manage Articles]:{ndr}/Administration/7.%20Repository/Articles/Overview.md
[Order-to-Cash demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Generate-O2C-Demo-Data.md
[Reading Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Reading%20Articles.md
[Revision History]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Revision%20History.md
[Revision History - Purge]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Revision%20History.md#fa-eraser-purge-revisions
[Revision History - Revision dialog]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Revision%20History.md#the-revision-dialog
[Snippets]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md
[Stylesheets]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/What%20is%20a%20Stylesheet.md
[Templates]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Features/Templates.md