code comment blocks 'smarts'

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
New Member
Posts: 1
Joined: Thu Jun 20, 2019 6:03 am

code comment blocks 'smarts'

Post by harvb »

I looked through some other comments and the FAQ on the site but didn't see anything specific to this request. one of our uses of examdiff is to do code comparisons when version branches take the software in different evolutionary paths. is there a way to tell examdiff to understand commented code blocks as similar instead of completely different? today, a 10 line function with // in front of each line is seen as completely different than the same function uncommented even though on a line by line basis examdiff would sense the // see them as similar lines. is there perhaps a plug-in for this?

User avatar
Site Admin
Posts: 1902
Joined: Sat May 15, 2004 4:23 pm
Location: California

Re: code comment blocks 'smarts'

Post by psguru »

Could you post a screenshot?

Expert Member
Posts: 422
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: code comment blocks 'smarts'

Post by MSpagni »

That's an extremely common use of EDP for me!
To begin with, I use the detail level "lines and characters". In this way it's immediate to see that the only difference is the "//".
Then I set the fuzzy matching so that EDP can automatically understand that those lines are "almost" the same and must be correlated.
Last trick, just for the most difficult cases, I give EDP a little help by manually synchronize the beginnigs of the two blocks.

Post Reply