14

Is there a way to make Ediff highlight whitespace using a different color, the way it does for non-whitespace differences?

For example, here are two regions with only whitespace differences:

enter image description here

And here are two regions with non-whitespace differences:

enter image description here

The non-whitespace differences are highlighted with ediff-fine-diff-* faces, while whitespace differences are not. I'd like some way to tell what the whitespace differences are.

Tianxiang Xiong
  • 3,848
  • 16
  • 27

2 Answers2

1

Seems like this feature is simply not supported.

The highlighting of fine differences is referred to as "refinement" by Ediff, and explicitly skips whitespace.

Note that refinement ignores spaces, tabs, and newlines.

Tianxiang Xiong
  • 3,848
  • 16
  • 27
1

One way you can do this is by enabling whitespace mode in all the ediff buffers. This can be done by Meta + x + whitespace-mode

It may be enough just to enable in the merge buffer. I'm not sure how you might go about enabling by default, but there will be a way.

cristobalito
  • 315
  • 4
  • 9