Highlight just changed characters, not lines.
Please just highlight changed characters, not lines. This can be done by parsing the output of:
git diff --word-diff-regex=.
See here: https://stackoverflow.com/questions/3231759/how-can-i-visualize-per-character-differences-in-a-unified-diff-file/7870727#7870727
You may also need:
git diff --word-diff-regex='[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+'
This is how meld gets their char-by-char highlighting information I'm pretty sure, as I just did a cross-comparison and the output from either of those two commands above seems to match nearly perfectly.
If you add char-by-char highlighting, your tool would be much closer to meld and much more functional and useful.
In case someone else is able to add this support, please also drop in some notes here to orient us to your code so we would know where these parsing changes would need to be added.
Also, can you please explain your tool?:
- When is text colored, and what colors mean what?
- Where is this in your code?
- When is text highlighted, and what colors mean what?
- Where is this in your code?
- When is text underlined, and what means what?
- Where is this in your code?
I see some fantastic opportunities for beautification here. Again, I really think this could be made to look very similar to meld, which would be awesome!