12

I have this comparison :

https://i.stack.imgur.com/bZej7.jpg

I want those line to be treated equal.

but it showes me they are different.

I already applied those settings :

https://i.stack.imgur.com/n2be9.jpg

https://i.stack.imgur.com/bzjQa.jpg

What am I doing wrong ?

0

3 Answers 3

2

I'm afraid it is not possible: https://stackoverflow.com/questions/10092538/how-to-ignore-line-breaks

even if you're ignoring line breaks, it won't treat the non-ignored text on separate lines as being continuous across line breaks.

1
  • you right. look at my answer
    – Royi Namir
    Jan 29, 2013 at 16:05
3

this is not possible

I got an email from the company itself :

Sorry, it isn't possible to ignore line breaks.

This means:

one two

and

one
two

will always show as differences.

Comparison across line breaks is on our wish list for a future version of Beyond Compare.

Best Regards, Chris Kennedy Scooter Software

3
1

I was also hoping that beyond compare would have something like this built in. Looks like it doesn't.

The best solution I have found to do this is to use some kind of code formatter on both sides. This allows you to compare real changes in the code. For javascript, I use JSBeautify.

For Java you could probably use your editor's built in beautifier or something like this: http://prettyprinter.de/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .