Reputation: 41
I compared two text files they are identical for me except line order. Why does Notepad++ give me an green plus and a red minus?
Upvotes: 3
Views: 11018
Reputation: 151
The blue highlight attempts to show which lines exist in both documents but have been moved to different lines. This can be disabled by unchecking "Detect Moves" in the compare plugin options.
The red highlights illustrate which lines have been removed and the green highlights illustrate which have been added between the versions.
Although the lines are simply reordered in your example, the compare plugin can't intelligently depict it any other way than what you see. If you disable Detect Moves then it will show the first two lines as deleted on the left and added to the right, since it considers the starting point to be the first line on the right.
The compare plugin does the following:
Upvotes: 6