12

I have this comparison :

https://i.sstatic.net/bZej7.jpg

I want those line to be treated equal.

but it showes me they are different.

I already applied those settings :

https://i.sstatic.net/n2be9.jpg

https://i.sstatic.net/bzjQa.jpg

What am I doing wrong ?

Hennes
  • 65,804
  • 7
  • 115
  • 169
Royi Namir
  • 5,888

3 Answers3

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

Royi Namir
  • 5,888
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.

Natrium
  • 448
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/