difft

Compare files or directories based on the syntax of the programming language. See also: delta, diff. More information: https://difftastic.wilfred.me.uk/introduction.html.

difft path/to/file_or_directory1 path/to/file_or_directory2

difft --check-only path/to/file1 path/to/file2

difft --display side-by-side|side-by-side-show-both|inline|json path/to/file1 path/to/file2

difft --ignore-comments path/to/file1 path/to/file2

difft --syntax-highlight on|off path/to/file1 path/to/file2

difft --skip-unchanged path/to/file_or_directory1 path/to/file_or_directory2

difft --list-languages