difftastic

Diff tool that understands syntax and produces human-friendly output

brewmacoslinux
Try with needOr install directly
Source

About

Diff that understands syntax

Commands

difft

Examples

Compare two files with syntax-aware diffing$ difft file1.js file2.js
Use as git diff tool for all changes$ git difftool --tool=difftastic
Compare directories recursively$ difft dir1/ dir2/