printing the comparison between two codes

Viewed 35

What is the best way to compare two codes side by side while the differences and similarity between two codes are color-coded and finally be able to print the result? I was able to use visual studio in order to open the codes and compare them but there is no way to print the results. 

I will appreciate to get any suggestion.

1 Answers

Xcode has a built-in tool called FileMerge.

  1. Xcode -> Open Developer Tool -> FileMerge

Xcode -> Open Developer Tool -> FileMerge

  1. Choose your files to compare, then click Compare

Compare files, choose Left and Right, then click Compare

  1. See differences

Left and Right panels with color-coded differences, with third panel below showing result after setting an Action for each difference

There's some other nice services like Diffchecker that let you do this online too.

Related