Use Notepad++ to compare the differences between two files

Notepad++, also called npp, is an open source small software similar to Notepad. It is portable, small, and resource-intensive. It supports many programming languages, such as C++, C#, Java and other mainstream programming languages. It supports HTML/XML, ASP, Perl, Python, JavaScript and other web/scripting languages. And Notepad++ is one of the programmer's favorite editors, such as syntax highlighting, grammar folding, macros and other editors. If you find that Notepad++ is not satisfactory, you can also define a more powerful Notepad++ by installing extensions or developing your own extensions!
Here's how to compare two Python files by installing the Compare plugin in NotePad++.
1. Open NotePad++, click [Plugin] on the toolbar - "Plugin Manager -" Show Plugin Manager, check √Compare - "Install", as shown in Figure (1), (2) Shown as follows:

Figure (1) Click [Plugin] - "Plugin Manager -" Show Plugin Manager


Figure (2) Check √ Compare — “Install
2. Use NotePad to open two files to be compared, such as SN.txt and 11.txt, where SN.txt is the source file and 11.txt is the target file. Click [Plugin] on the toolbar - "Compare", check √
Align Matches
Ignore Spacing (ignoring spaces)
Detect Moves
Navigation bar (Navigation bar)
As shown in Figure (3):

Figure (3) Set the conditions to be compared

Then, click [Plugin]/Compare/ Compare, as shown in Figure (4):

Figure (4) Open SN.txt and 11.txt, click [plug-in] / Compara/Compare

The effect is as follows:

Figure (5) View the line indicated by the yellow color, found that the int of the statement in the target file 11.txt has a problem, it should be init, ie int —> init
--------------------- 

Reprinted from: https://blog.csdn.net/sanqima/article/details/50467154 Thanks to the blogger!
 

Intelligent Recommendation

Use python standard library difflib to compare the similarities and differences between two files

[Demand background] Sometimes we need to compare whether two configuration files are the same, or whether the two texts are different, we can use the Linux command line tool diff a_file b_file, but th...

Use the python standard library difflib to compare and mark the differences between the two files

Today a piece of code just couldn't run, and the official comparison did not find any problems, so I decided to write a program to find it. mainly uses python's standard library difflib. For a detaile...

Compare the differences between two large text files and output increments and decrements

There are two text files A and B with 4G size, divided by lines and 50 characters per case (upper and lower case letters). Now it is necessary to calculate B relative to A based on B file under limite...

Compare the content differences between two files VS Visual Studio Code

Description Before comparing file differences, Beyond Compare is generally recommended, but this is a fee-based IDE. Better alternatives are recommended here. Microsoft produced a free IDE – Vis...

Software and steps to compare the differences between two texts and files

Use BCompare software to compare the contents of two files First open the software BCompare software Select the corresponding file or text comparison If you choose text comparison, it is as follows If...

More Recommendation

Compare the differences between two branches on Git, and export files

usegit diffTo compare the difference between two branches View detailed difference View all lists of different files Export all differences Newly built specified disk DIFF folder The following is crea...

Compare files in two folders for differences

File helper Compare file help   Simple comparison of the main program  ...

Use python to compare the difference between two files

Comparing the differences between two files is quite useful, especially comparing the differences between the two versions Take a look at the effect of a.html...

Compare the differences between two objects

Compare the contents of two objects There is a demand in the work, that is, the content of the database queries is relatively different, and there is not much to say, on the code. . . 1, here is incom...

Use the DIFF algorithm to compare two data, get the differences between the attribute differences and attribute differences of two data

Because use TS, first define some types of needs to be used. Performing DIFF comparison Note: The current contrast and state acquisition is based on the left (ORIGIN)-based, that is, all states are co...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top