Here's a useful shell script for anyone working with text files. wordif.sh does word-by-word comparisons and outputs the results as highlighted HTML or PDF. It's much easier to read than standard terminal diffs, especially when you're comparing entire directories. Simple and effective for document reviews. https://github.com/jazzfan2/wordif
git diff --word-diff You're completely right, as does wdiff() with some post processing. I know, but the main drive for me to develop this was to come up with something that doesn't require (especially non-technical) users to (sudo/brew/xcode) install anything additional to what's already available on any unix(-like) platform. (Admitted: except for wkhtmltopdf, but that's not essential to produce PDF - as this can also be done from the browser.)