TextCompareLab for Notepad++
Free plugin, beta
Compare two tabs in Notepad++
Open two texts in two Notepad++ tabs and compare them line by line. Changed words are highlighted inside each changed line. It works on your computer and sends no text anywhere.
- Red: line only in the first tab
- Green: line only in the second tab
- Yellow: changed line, with orange boxes on the changed words
Also: choose the two tabs from a list, next and previous difference, clear comparison, an option to ignore spaces and tabs, export as a patch file (a standard unified diff, like git) and export as an HTML report that opens in any browser. The HTML report contains the full text of both documents.
Download
Option 1: installer. Beta. Download and installation have been checked by a user. Full feature and compatibility testing is still pending. It is a small Windows program that finds Notepad++, picks the 32-bit, 64-bit or ARM64 plugin file to match it, and copies it into the plugins folder. You start it yourself and Windows may ask for approval; it never closes Notepad++ (close it first and save your work), makes no internet connection and changes no Windows settings. It can also uninstall. The installer is for 64-bit Windows; for 32-bit Windows use the ZIP below. It is not code-signed, so Windows SmartScreen may warn: check that the SHA-256 below matches.
Option 2: ZIP (manual). Most people need the 64-bit version. In Notepad++, open the ? menu, then About Notepad++: it says 64-bit, 32-bit or ARM64.
Install from the ZIP
- Close Notepad++ and unzip the download.
- Create the folder
C:\Program Files\Notepad++\plugins\TextCompareLaband copyTextCompareLab.dllinto it. Windows may ask for administrator approval to copy. - Start Notepad++. The plugin is in the Plugins menu, under TextCompareLab. (A portable Notepad++ uses its own
pluginsfolder.)
Use
- Choose Plugins > TextCompareLab > Choose two tabs to compare..., pick the first and the second text from the lists, and press Compare. (Or use 1. Mark this tab as first on one tab and 2. Compare this tab with the first on the other.)
- Use Next difference and Previous difference to jump between changes. After editing either text, run step 2 again. Clear comparison removes the highlights.
- After a comparison, Export as patch file saves the changes as a unified diff that turns the first text into the second. Apply it to the first file with
git applyorpatch -p1. Spaces and line endings count in a patch. The patch is only saved when both tabs are UTF-8 or plain ASCII text; for other encodings (such as UTF-16) nothing is saved and a message explains why.
- Four toolbar buttons (choose tabs, next difference, previous difference, export) and default keys Ctrl+Alt+T, Ctrl+Alt+Down, Ctrl+Alt+Up and Ctrl+Alt+P (export, asks patch or HTML). You can change the keys in Settings > Shortcut Mapper > Plugin commands. Another plugin or your own settings may already use them.
- After a successful export, the patch opens in a Notepad++ tab and the HTML report opens in your browser, for viewing only.
About the Windows warning
The plugin file is not code-signed, so Windows may show a warning for a downloaded file. Check that the SHA-256 of your zip matches the value shown next to the download. If it does not match, do not use the file.
Open source (GPL)
The plugin is free software under the GNU General Public License, version 2 or later, and is built on the Notepad++ plugin template. The complete source, license text, third-party notices and build script are here:
It is not an official Notepad++ plugin and is not listed in the Notepad++ Plugins Admin.