Diffing comments is surprisingly hard. In difftastic, I'm colouring the whole changed comment, but also underlining the changed words.
This works OK, but punctuation is harder to read (see second image) and sometimes there's code in comments (see third image).
miniblog.
Related Posts
Super impressed with the Ariadne library for compiler error formatting. It handles all the messy line highlighting, underlining etc that a good error should have.
Left: old, handrolled error formatting
Right: Ariadne formatting




