Use Notepad++ to compare files

Original link: https://blog.csdn.net/sanqima/article/details/50467154

-----------------------------------------------------------------------------


Notepad++, also called npp, is an open source software similar to Notepad. It is portable, small in size, small in 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. Moreover, Notepad++ is one of the favorite editors of programmers, and there are many common editor functions such as syntax highlighting, syntax folding, and macros. If you find Notepad++ unsatisfactory, you can also define a more powerful Notepad++ by installing an extension or developing your own extension! 

  The following describes 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 Figures (1) and (2): 
write picture description here
Figure (1) Click [Plugin] - "Plugin Manager - "Show Plugin Manager

write picture description here
Figure (2) Check √ Compare —“Install

  2. 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 [Plugins]->Compare on the toolbar, check √ 
   Align Matches 
   Ignore Spacing (ignore spaces) 
   Detect Moves 
   Navigation bar (navigation bar) 
  as shown in Figure (3): 

write picture description here
Figure (3) Setting the conditions to be compared

  Then, click [Plugins]/Compare/Compare, as shown in Figure (4): 
write picture description here
Figure (4) Open SN.txt and 11.txt, click [Plugin]/Compara/Compare

  The effect is as follows: 
write picture description here
Figure (5) Looking at the line indicated by the yellow color, it is found that there is a problem with the int in the statement in the target file 11.txt, it should be init, that is, int —> init

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324412090&siteId=291194637