5

Normally, 'diff' tool finds only changes between lines. For example, if i compare 'abcdef' and 'AbcdEf', diff will show that 'abcde' is changed and 'f' is unchanged. Is it possible to find multiple changes per line, so in example above i will see that it's only 'a' changed to 'A' and 'e' changed to 'E'? Or diff outut format does not support such?

1

3 Answers 3

4

There are multiple diff tools that will do what you're asking for.

Off the top of my head I know Winmerge and TortoiseMerge does that.

4

I recommend KDiff3 which highlights with different colours changes on the same line.

alt text

1
  • 2
    screenshot is worth a 1000 words
    – mt3
    Oct 20, 2010 at 21:39
1

I wrote a tool to diff web code regardless of differences from comments and whitespace. This means my tool can diff a completely minified file against a similar beautified file. It is written entirely in JavaScript so you try it directly in your browser without downloading or installing anything. This does highlight differences per line and highlights differences per characters on those lines.

http://prettydiff.com/

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.