Each webmaster more or less will make some code changes to the file, when patching the patch if directly overwrite the file, then the previously modified code is not. Therefore, we need to make a code comparison and then synthesize a special patch package that preserves both our previous modification code and the patch code, and we need to use the File Compare tool, which describes how to compare code using Beyond Compare .
Beyond Compare is a classic and excellent professional-grade file comparison software, using it can easily compare two folders or files (such as code/web/text files, etc.) between the difference, it will be the difference of each line or each word is color-coded out, Not only can you visually view, position all the differences, but also make it very easy to modify them.
The following steps are described:
Steps to download and install the Beyond compare software. The latest version of Beyond Compare 4 Chinese version can be downloaded from beyond Compare Chinese website.
Step two open beyond Compare software, select the left "text compare" and double click;
Double-click the Text Compare button on the left side of the software interface
Step three in the Open text comparison session interface to compare the two code files are dragged to the left and right two boxes;
example of dragging a code file to a text comparison session interface
Step four will automatically mark the different areas as red when they are opened, as shown in.
example of automatically using the red to mark the difference section
The red in the left sidebar of step five is a different place throughout the code, as shown in;
use red to mark code in the left sidebar examples of different parts
Step six Drag the scroll bar, both horizontally and vertically on both sides of the code will be synchronized, browsing very carefree.
dragging the scroll bar on both sides of code synchronization browse sample
above to you introduce the use of Beyond compare comparison code operation method, after learning the tutorial, compare the code file to find out the difference is no longer difficult. So, Beyond compare is an absolutely indispensable tool, and I believe it will be a must for all developers and IT experts.
How to compare code with beyond compare