Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Highlight bytes / words in diffs on adjacent multi-line modifications. #235
When you modify a byte of a single line, it gets highlighted.
When you modify a byte on two adjacent lines, not.
Note how E gets highlighted (darker), while K and N don't.
Should be technically feasible, since both Diffy (which GitLab uses for the diffs) and the diff-highlight contrib script do it. E.g.:
<div class="diff"> <ul> <li class="del"><del>a <strong>b</strong> c</del></li> <li class="del"><del>d <strong>e</strong> f</del></li> <li class="ins"><ins>a <strong>B</strong> c</ins></li> <li class="ins"><ins>d <strong>E</strong> f</ins></li> </ul> </div>
Implemented: https://github.com/blog/1885-better-word-highlighting-in-diffs , together with samg/diffy#44