在编写代码的过程中,经常碰到两个文件之间的逐行比較。特别是新代码与源码之间的文字比較,这里介绍用UltraEdit实现新代码与源码之间的比較方法。
//源码:Bearing.mac
FINISH/CLEAR/FILNAME,Bearing,1/PREP7 /TITLE,3D modelBLOCK,0,2.5,0,1,0,2 WPOFF,0,1,2 WPROT,0,-90,0 BLC4,0,0,2,1,2 WPCSYS,-1,0 WPOFF,0,3,2 CYL4,0,0,0,0,2,90,-1CYL4,0,0,1.2,,,,-0.2 CYL4,0,0,1,,,,-1 VSEL,S,VOLUM,,2,4,1 VSBV,ALL,4 ALLSEL,ALL VSEL,S,VOLUM,,5,7,1 VSBV,ALL,5 ALLSEL,ALLVSYMM,X,ALL,,,,0,0 VSEL,ALLVGLUE,ALL SAVE
//新代码:ZhouCeng1a.mac
FINISH/CLEAR/FILNAME,Bearing,1/PREP7/TITLE,3D model5BLOCK,0,2.5,0,1,0,2 WPOFF,0,1,2 WPROT,0-90,0 BLC4,0,0,2,1,2 WPCSYS,-1,0 WPOFF,0,3,2CYL4,0,0,0,0,2,90,-1CYL4,0,0,1.2,,,,-0.2 CYL4,0,0,1,,,,-1 VSEL,S,VOLUM,,2,4,1 VSBV,ALL,4 ALLSEL,ALLVSEL,S,VOLUM,,5,7,1VSBV,ALL,5ALLSEL,ALLVSYMM,X,ALL,,,,0,0 VSEL,ALLVGLUE,ALL SAVE
1) 在UltraEdit中,同一时候打开源码Bearing.mac 和新代码ZhouCeng1a.mac,如图(1)所看到的: