Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use Notepad++ to compare files

Shulou Source: shulou.com Published: 2022-06-02 16:24:07 10月03日 Update

This article mainly introduces how to use Notepad++ to compare files, the article is very detailed, has a certain reference value, interested friends must read it!

Notepad++, also known as npp, is a small open source software similar to notepad. It runs portable, small size, small resource consumption, supports many programming languages, such as C++, C#, Java and other mainstream programming languages; supports HTML, XML, ASP,Perl, Python, JavaScript and other web / script languages.

And Notepad++ is one of the favorite editors for programmers, with many common functions such as syntax highlighting, syntax folding, macros and so on. If you find that there is something wrong with Notepad++, you can also define a more powerful Notepadware overview by installing extensions or developing your own extensions!

Here's how to compare the two Python files by installing the Compare plug-in in NotePad++.

Open NotePad++, click "plug-in"-"Plugin Manager -" Show Plugin Manager on the toolbar, and select √ Compare-"Install, as shown in figures (1) and (2):

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

Figure (2) check √ Compare-"Install"

two。 Use NotePad++ to open the two files you want to compare, such as SN.txt and 11.txt, where SN.txt is the source file and 11.txt is the target file. Click [plug-ins]-"Compare" on the toolbar, and check √.

Align Matches (alignment match)

Ignore Spacing (ignore spaces)

Detect Moves (detect Mobility)

Navigation bar (navigation bar)

As shown in figure 3:

Figure (3) set the conditions to be compared

Then, click [plug-ins] / Compare/ Compare, as shown in figure (4):

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

The effect is as follows:

Figure (5) looking at the lines represented in yellow, we find that there is a problem with the int of the statement in the target file 11.txt. It should be init, that is, int-> init.

The above is all the contents of the article "how to use Notepad++ to compare files". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Files plug-ins programs languages such as figure two content tools toolbars goals articles editors syntax support powerful mainstream value size small size interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Redmi NVidia Docker