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 ?

Hennes
  • 64,768
  • 7
  • 111
  • 168
Royi Namir
  • 5,598
  • 14
  • 47
  • 70

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,598
  • 14
  • 47
  • 70
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
  • 5
  • 11
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/

sixtyfootersdude
  • 8,049
  • 16
  • 52
  • 71