notepad++, also known as NPP, is a small open source software similar to Notepad. It is portable, small in size, small in resource footprint, supports many programming languages, such as C + +, C #, Java and other mainstream programming languages, and supports HTML, XML, Asp,perl, Python, JavaScript and other web/scripting languages. and notepad++ as one of the programmers favorite editors, such as syntax highlighting, syntax folding, macros and other editors commonly used in many functions. If you find that notepad++ is not satisfactory, you can also define a more powerful notepad++ by installing extensions or by developing your own extensions.
The following is a comparison of two Python files by installing the Compare plug-in in notepad++.
1. Open notepad++, click on the toolbar, "plugin]–" Plugin manager-"show Plugin Manager, tick √compare– Install, as shown in figure (1), (2):
Figure (1) Click [Plugin]– "Plugin manager–" show Plugin Manager
Figure (2) tick √compare-"Install
2. Open the two files to compare with Notepad, such as SN.txt and 11.txt, where SN.txt is the source file and 11.txt is the target file. Click on the Toolbar "plugin"-"Compare", check √
Align matches (alignment matching)
Ignore Spacing (Ignore spaces)
Detect moves (detect move)
Navigation bar (navigation bar)
As shown in figure (3):
Figure (3) Set the condition to be compared
Then, click on the "plugin"/compare/compare, as shown in Figure (4):
Figure (4) Open SN.txt and 11.txt, click "Plugin"/compara/compare
The effect is as follows:
Figure (5) To view the line of the yellow color, found that the target file 11.txt the statement of the int is a problem, should be init, that is, int-> Init