Various

Compare two text files with Notepad++

It often happens, when you have to work with a lot of data, to need to know differences between two sets of text data.

A simple solution to know quickly if data set look alike or not, or to have an overview of different lines, is to use Notepad++ [1].

You will also have to install Compare plugin. To do so, go on SourceForge [2], and download the latest plugin version. You then just have to extract downloaded archive in your Notepad++ installation folder.

Then, open your 1st file (Fig 1), and the second one (Fig 2), using Notepad++, and when the two files you want to compare will be the two last files open in the software, start comparison with Plugin => Compare => Compare (Fig 3), or keyboard shortcut Alt+D.

First text file to compare
Fig 1 : First text file to compare
Second text file to compare
Fig 2 : Second text file to compare
Comparison function in Notepad++
Fig 3 : Comparison function in Notepad++

Your two files will then be, after processing, displayed with their differences (Fig 4) : lines deleted (-) and lines added (+). Lines found in both files will remain displayed with a white background.

Text files comparison results in Notepad++
Fig 4 : Text files comparison results in Notepad++

Update July 2018 : Notepad++ compare two xml

It is also possible with Notepad++ to compare xml files. Simply follow previous steps, which are Notepad++ compare plugin install, open xml file in Notepad plus plus, and comparing them using the menu Notepad++ Plugins Compare.
XML compare for free in Notepad++ will be done instantly, showing the lines removed, the lines added, the text modified in same line. Notepad plus plus probably is the best XML editor as it works also as an XML formatter, and a great xml editor windows 10.
This is how to edit xml files in notepad, but also how to save xml file in notepad.

Links and credits

Images

Read more about it

Plan your next business trip

[tp_popular_routes_widget destination=MOW responsive=true subid=””]
[tp_popular_routes_widget destination=PAR responsive=true subid=””]
[tp_popular_routes_widget destination=AMS responsive=true subid=””]
Plan your next business trip