Compare two files with a UltraEdit

Source: Internet
Author: User
Tags ultraedit

In the process of writing code, we often encounter a line-by-row comparison between the two files, especially the text comparison between the new code and the source code, which describes the comparison between the new code and the source code using UltraEdit.
Source code: BEARING.MAC

Finish/clear/filname,bearing,1/prep7/title,3D Modelblock,0,2.5,0,1,0,2Wpoff,0,1,2Wprot,0,- -,0BLC4,0,0,2,1,2wpcsys,-1,0Wpoff,0,3,2CYL4,0,0,0,0,2, -,-1CYL4,0,0,1.2,,,,-0.2CYL4,0,0,1,,,,-1Vsel,s,volum,,2,4,1Vsbv,all,4Allsel,all Vsel,s,volum,,5,7,1Vsbv,all,5Allsel,allvsymm,x,all,,,,0,0Vsel,allvglue,all SAVE

New code: ZHOUCENG1A.MAC

Finish/clear/filname,bearing,1/prep7/title,3D Model5block,0,2.5,0,1,0,2Wpoff,0,1,2Wprot,0- -,0BLC4,0,0,2,1,2wpcsys,-1,0Wpoff,0,3,2CYL4,0,0,0,0,2, -,-1CYL4,0,0,1.2,,,,-0.2CYL4,0,0,1,,,,-1Vsel,s,volum,,2,4,1Vsbv,all,4Allsel,allvsel,s,volum,,5,7,1Vsbv,all,5Allsel,allvsymm,x,all,,,,0,0Vsel,allvglue,all SAVE

1) in UltraEdit, open both the source code BEARING.MAC and the new Code ZHOUCENG1A.MAC, (1) as shown:


Figure (1) in UltraEdit, open both the source code and the new code
2) Click "File" – "Compare Files" on the UltraEdit toolbar – √ tick "difference for color distinction", "√ Tick" for "diff" and √ tick "ignore content blank"-click on "Compare" button, (2) shown:

Figure (2) Setting the type of comparison
3) The effect is as follows:

Figure (3) comparing the source file to the new file
As the figure (3) shows, the new file Zhouceng1a.mac and the source file Beaering.mac in addition to lines 5th and 8th, the others are the same.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Compare two files with a UltraEdit

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.