Skip to main content

How to Make Notepad++ Compare Two Files With a Plugin

compare-two-files-notepad

Notepad++ is a free, open-source, code and text editor jampacked with lots of features for both casual users and programmers. It supports various programming languages with custom syntax highlighting, auto-completion, and code folding.

The inclusion of sophisticated editing tools, user-defined style options, and support for plugins is like icing on the cake. One such powerful plugin is the Notepad++ Compare plugin which lets you see the visual difference between the two files. We’ll show you how to use this plugin to compare two files in Notepad++.

Basics of Plugins Admin in Notepad++

Plugin Admin or Manager is the repository of dozens or more plugins to extend the functionality of Notepad++. Before you start using them, there are a couple of settings you should watch out for while installing the app.

On the Choose Component screen during installation, make sure to select the Custom option from the dropdown list and check Plugins Admin box. Many users skip the installation steps. If you do so, then the plugin manager will not get installed. Slowly proceed with the steps while installing Notepad++.

select plugin admins option while installing notepad++

Notepad++ keeps configuration files in the \Users[User Name]\AppData\Roaming\Notepad++\plugins folder.

If you plan to use this app on another computer or store in a USB drive, then check Don’t use %APPDATA box.

Your configuration files will remain in the Program Files folder.

don't use the appdata option in notepad++

Plugins Admin lists all the available and installed plugins. From here, you can install, update, or remove installed plugins. A revamped version came into effect in version 7.6 and above. If you want to use the plugins, then upgrade Notepad++.

Installing the Compare Plugin

Open Notepad++. Navigate to Plugins > Plugins Admin to open plugins manager. In the popup window that appears, type in Compare on the search bar. Check the box, then click Install. Once the plugin gets installed, the app will restart.

plugins admin notepad++

Click the Compare tool option from the Plugin menu. As of now, you can download the latest iteration of this plugin (version 2.0.0) from Github. Both 32-bit and 64-bit versions are available.

choose the compare option from the plugins menu

How to Compare Two Files in Notepad++

The compare plugin assumes that you want to compare an old version of your work versus the new version. Open any two files (A, B) in Notepad++ which you want to compare. File B (new) gets compared to File A (old).

Then, navigate to Plugins > Compare Menu > Compare.

comparing two files in notepad++

It shows the difference/comparison side by side, as shown in the screenshot. You can set any open file as the default by clicking Set as First to Compare. You can then choose this selected file to compare it with other ones in whatever mode you decide.

Colors and Symbols

The compare plugin uses various colors and symbols to denote the changes in your file. You could have added, deleted, moved, or changed the line.

  • Added (+): The line only exists in the new file and not the old ones. The highlight color is green.
  • Removed (-): The line does not exist in the new file and only present in the old file. The highlight color is red.
  • Moved: The line appears once in the other file and a different location.
  • Changed: Most of the line is identical in both files. You’ll see the changes highlighted in orange.

Note: If you uncheck the Detect Moves option in Plugins > Compare Menu the meaning of symbols changes. Therefore, whenever you’re comparing two files in a session, always check for this option.

file comparison areas highlighted in various colors and symbols

Navigation Bar

The navigation bar to the right side of the Notepad++ comes handy when you’re comparing big files. In a big file, navigating the whole file by going up and down to find the difference is difficult and time-consuming. The navigation bar works like a sitemap and bookmark browser.

navigation bar in notepad++

Click the selected area to scroll in your file. Since it uses the same convention for colors and symbols, you’ll come to know which line was added, removed, and more with a glance.

Changing the View Modes

By default, when you compare two files, it does so in double-view mode. Right-click the gripper and choose Rotate to right or left. It either splits the window horizontally or vertically.

view modes in notepad++

And if you continue rotating, your old file appears in the left while the new file appears in the right panel. It is recommended to restart Notepad++ after shifting from horizontal to vertical split or vice-versa.

Time-Saving Uses of the Notepad++ Compare Plugin

We often need to compare two files. The tool enables you to compare the original and modified files and list the lines you’ve changed. It has many practical uses:

  1. If you’re working on a code and want to see the changes other people made, then a compare tool can make comparison easier.
  2. You can precisely check the line with any code errors, defects that you don’t remember, and find the source of your problem.
  3. Any difference gets highlighted in various light and dark color hues to help you identify changes.
  4. You can compare files in a folder and know which directory is missing what files. This is useful if you have a large collection of music or ebooks on your computer.

When you click the Compare menu, it shows a popup with all the commands and options. It even lists down the keyboard shortcuts for those commands.

Explore the Settings

The compare plugin has all the basic features of a standard Diff tool. Click Settings to see the list of options you can tweak.

  • Color Settings: This option allows you to set color coding for Added, Deleted, Moved, and Changed line. For each option, you can choose a different color, change the highlight color, and its transparency.
  • Menu Settings: This option enables you to customize the file positions. First is determines whether you’re comparing the old or new file. Old file position allows you to position the old file at the left or right view (top/bottom in vertical split). Single-view default compare to lets you compare the active file in a single-view mode with the previous or next file.
  • Warn about encodings mismatch: shows you a warning message on trying to compare two files with different encodings.
  • Wrap around diffs: Determines whether it should enable the Next command on reaching the last diff and go to the first diff.
  • Go to first diff after re-compare: When unchecked, the caret position will not change on re-compare.

compare plugin settings

Compare Microsoft Office Files

Notepad++ is a flexible code and text editor app. You can customize it to any level depending on your needs. The compare plugin is a solid example which shows the power of plugins. You can compare a text, markdown file, or any programming language file.

With the flexible view modes and settings, this plugin is just as good as a Diff tool. But for some reasons, you cannot compare proprietary file formats like DOCX, XLSX, and more. If you want to know the procedure, look at our guide on how to compare two excel files and Microsoft word documents.

Read the full article: How to Make Notepad++ Compare Two Files With a Plugin

Comments

Popular posts from this blog

The Best 10 Social Media Platforms for Photographers to Flaunt Their Talent

Social media offers an excellent opportunity for photographers to connect with potential clients. In the digital era, it's a great asset. By showcasing your work on these networks, you can reach new audiences. Whether you are a professional or freelance photographer, the following social platforms will help you show off your work and get the right people to take notice... 1. Behance Behance is a classic portfolio publishing network that functions like a LinkedIn for creatives. Designed by Adobe, this is one of the best photography networking sites currently out there. The platform is ideal for sharing your portfolio and favorite images, allowing other Behance users to like and comment on your photos. By learning from their feedback and professional critiques, you can improve your work. The coolest feature of Behance is that it lets you find professional gig opportunities right on the platform. With your portfolio already available on the site, getting work becomes effortless.

The 6 Best Platforms for Sharing Your Digital Art Online

Whether you're looking for somewhere to host your digital art portfolio or simply want to share your latest artworks, it can be difficult to choose a website to upload to. Or at least, it definitely is more so than before, now that art websites aren't bubbling with as much excitement as they used to be. You know that each site has its pros and cons, but it's hard to figure out what those are unless you make an account and see for yourself. Don't worry if you don't have time for that—we've got your back. Here are the websites we recommend for sharing digital art, and why you might want to consider them. 1. Pixiv If you were around when the online art scene was ridiculously active, chances are that your art style is influenced by anime and/or manga in some way. Otaku culture began its slow sneak into mainstream media back then, and Pixiv is a great home for artists that fall in that category. Pixiv started as a small online community based in Japan, but has s

Snapchat Suspends Two Anonymous Messaging Apps Over Cyberbullying Claims

In light of a lawsuit that was filed earlier, two Snapchat apps, Yolo and LMK have been suspended by Snap. The apps allowed users to send anonymous messages on the platform. The Lawsuit Calls for an Immediate Ban of Yolo and LMK According to a LA Times report, the lawsuit was filed on behalf of Kristin Bride, the mother of a teen who committed suicide in 2020. The lawsuit alleges that Bride's son took his own life after being cyberbullied via Yolo and LMK. In addition to this, the lawsuit alleges that Yolo and LMK aren't doing enough to tackle cyberbullying, and have consequently violated consumer protection law as well as their own terms of service and policies. Both apps use Snap Kit, a set of tools that allows developers to directly connect to Snapchat for better integration features. Today the family of a 16-year-old Oregon boy who took his own life after being cyberbullied sued Snap and the makers of apps YOLO and LMK, alleging that the companies should be "h