difft
Compare files or directories based on the syntax of the programming language. tldr-pages
On several platforms
Several platforms
Compare two files or directories
difft path/to/file_or_directory1 path/to/file_or_directory2IdentifyOnly report the presence of differences between the files
difft --check-only path/to/file1 path/to/file2IdentifySpecify the display mode (default is side-by-side)
difft --display side-by-side path/to/file1 path/to/file2IdentifyIgnore comments when comparing
difft --ignore-comments path/to/file1 path/to/file2IdentifyEnable/Disable syntax highlighting of source code (default is on)
difft --syntax-highlight on path/to/file1 path/to/file2IdentifyDo not output anything at all if there are no differences between files
difft --skip-unchanged path/to/file_or_directory1 path/to/file_or_directory2IdentifyPrint all programming languages supported by the tool, along with their extensions
difft --list-languagesIdentify