Home >Development Tools >notepad >How to compare files in notepad
1. Download the Compare plugin
Enter the npp official website plugin http://docs.notepad-plus-plus.org/index. php/Plugin_Central#C, scroll down the page to find Compare Plugin
There are two Compare Plugins here, the first one is official, the second one is unofficial (maybe more powerful), choose the official one here to try To test the waters first, click to download the Compare plugin
Click to download
Related recommendations: "Notepad use Graphic tutorial》
2. Manual installation
After the download is completed, it is a ComparePlugin.v1.5.6.3.bin.zip compressed file, unzip it This file has a readme.txt file in its doc directory, the content is as follows:
To install manually, copy ComparePlugin.dll and ComparePlugin subfolder into the plugins directory C:\Program Files\Notepad++\Plugins.
means: manual installation, ComparePlugin.dll and ComparePlugin files in ComparePlugin.v1.5.6.3.bin.zip Copy the folder to the Plugins subdirectory of the NotePlusPlus installation path.
(The default installation path of NPP is: C:\Program Files\Notepad\Plugins. If you customize the installation path of NPP, you need to copy it to the corresponding path. I have customized the path here, so it is D:\Program Files (x86)\Notepad \plugins)
After copying, restart Notepad and you can see the Compare plug-in in the plug-in bar.
3. Happy use
Select the "new2" file, click the plug-in bar> Compare > Compare, it will be displayed Comparison results with "new3".
Note: Generally, the selected file is compared with the file on the right. If there is no file on the right, the file on the left is compared. Can't understand? For example: in the picture above, we selected "new2", and the file on the right is "new3". The comparison shows the comparison results of "new2" and "new3"; if we select "new3", then Go to the plug-in bar > Compare > Compare. Because there is no file on the right side of new3, it will compare the file on the left, that is, "new2".
so, if you want to compare, you have to put the two files next to each other. As for the left and right, it depends on which one you want to compare with.
Then you suddenly find out, how to cancel the comparison results after comparison?
To cancel comparison, click here: Plug-in Bar > Compare > Clear Results
If you want to cancel synchronous scrolling, just click the button pointed by the arrow.
The above is the detailed content of How to compare files in notepad. For more information, please follow other related articles on the PHP Chinese website!