Home > Article > Development Tools > How to use Notepad++ to compare files
Notepad, also called npp, is a small open source software similar to Notepad. It is portable, small in size, and takes up little resources. 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 page/script languages.
And Notepad is one of the favorite editors among programmers. It has all the common editor functions such as syntax highlighting, syntax folding, and macros. few. If you find something dissatisfied with Notepad, you can also define a more powerful Notepad by installing extensions or developing extensions yourself! (Recommended learning: notepad )
The following describes how to compare two Python files by installing the Compare plug-in in NotePad.
Open NotePad, click [Plug-in] on the toolbar -》Plugin Manager -》Show Plugin Manager, check √Compare -》Install, as shown in Figures (1) and (2):
Picture (1) Click [Plugin]–》Plugin Manager –》Show Plugin Manager
##Picture (2 ) Check √ Compare —》Install2. Use NotePad to open the 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 [Plug-in] on the toolbar - "Compare", check √ Align Matches Ignore Spacing Detect Moves Navigation barAs shown in Figure (3):
Figure (3) Set the conditions to be compared
Then, click [Plug-in]/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) Check the line represented by yellow color and 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 the detailed content of How to use Notepad++ to compare files. For more information, please follow other related articles on the PHP Chinese website!