Bug in highlighting

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 3
Joined: Mon Nov 29, 2010 1:35 pm
PostPosted: Mon Nov 29, 2010 1:50 pm
I am Comparing
OLD
With Dt
.Add("One", "")
.Add("Two", "")
.Add("Four", "")
.Add("Eight", "")
End With

New below
With Dt
.Add(Siffror.One.ToString, "")
.Add(Siffror.Two.ToString, "")
.Add(Siffror.Four.ToString, "")
.Add(Siffror.Eight.ToString, "")
End With


The highlightning goes wrong för the strings "One" and "Two".
I am running Diffmerge Version 3.3.0(18513).
I am reporting this because I really like Diffmerge and it is so exceptionally good, I suppose Your aim is to stay that way.
Regards,
Lars

Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Mon Nov 29, 2010 3:06 pm
Can you explain further how the highlighting is off or show a small screenshot?

I put what you posted into text files and performed a compare and came up with the following.
compare.JPG
compare.JPG (38.25 KiB) Viewed 4163 times
Beth Kieler
SourceGear Technical Support

Posts: 3
Joined: Mon Nov 29, 2010 1:35 pm
PostPosted: Wed Dec 01, 2010 12:39 pm
Hi,
Below I attach a screenshot:

[img]Diff.PNG[/img]

Regards,
Lars
Attachments
Diff.PNG
Diff.PNG (54.44 KiB) Viewed 4153 times

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Wed Dec 01, 2010 2:19 pm
That is the "intra-line smoothing" trying to hide short runs
of equal text within large chunks of modified text. Often times
when comparing 2 pages that have very low correlation, common
letters (like vowels and whitespace) will sync up and just introduce
"visual noise" in the display. The smoothing takes short sequences
and just marks them as different so that we can build a longer run
of text in the same color.

Usually that is a good thing. But in your example, it wasn't.

Visit the Options Dialog and the Detail Level page and decrease the
value of "Intra-line Smoothing Threshold" from 3 to something smaller.
Or set it to 0 to turn it off completely.

Hopefully that'll take care of the problem.

Cheers,
jeff

Posts: 3
Joined: Mon Nov 29, 2010 1:35 pm
PostPosted: Wed Dec 01, 2010 2:32 pm
I did as You suggested. I decreased the "Threshold" from 3 to 2 and then restarted Diffmerge.
It took care of the problem !
Thanks.

Regards,
Lars

Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
PostPosted: Wed Dec 08, 2010 1:49 pm
Thank you for the update.
Beth Kieler
SourceGear Technical Support

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 3 guests

cron