Using notepad++ to compare files

Source: Internet
Author: User

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
  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.