tags:

views:

140

answers:

3

Hello.

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?

+2  A: 

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.

Joseph
+1  A: 
hlovdal
screenshot is worth a 1000 words
mt3
A: 

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://mailmarkup.org/prettydiff/prettydiff.html