grigoryvp
grigoryvp

Reputation: 42463

multiple changes in one line with diff tool?

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?

Upvotes: 5

Views: 2285

Answers (3)

hlovdal
hlovdal

Reputation: 28180

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

alt text

Upvotes: 4

austin cheney
austin cheney

Reputation:

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/

Upvotes: 1

Joseph
Joseph

Reputation: 25513

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.

Upvotes: 4

Related Questions