Here's an example where highlighting changed words in a comment is kinda distracting.
I think the right solution is to compute a levenshtein distance and only highlight changed words if the lines are sufficiently similar.
I've been experimenting with black-and-white syntax highlighting in difftastic. Comments are dim gray, keywords are bold. Here's a mock-up.
I'm trying to avoid garish colour combinations or distracting from the red/green of what's changed.
What do you think? Too subtle?
I'm experimenting with syntax in examples. I don't really like Rust's `assert(inc(1) == 2)` syntax, I find it a little distracting.
I'm trying `inc(1) //-> 2`. The comment is rendered differently, and there's nothing before the sample code. What do you think?
Wilfred Hughes
Shared words: distracting, example, comment, think
Score: 97
Further tinkering with diagnostics, following feedback!
* Two lines of context above and below now.
* The caret is included in the line below where possible.
* Syntax highlighting of keywords.
I kinda feel that smart context sizing would be better. What do you think so far?