Compare two files and write an HTML-report to a file (use - for stdout)

diffoscope

diffoscope --html {{path/to/outfile|-}} {{path/to/file1}} {{path/to/file2}}

click the source code to copy install diffoscope on any operating system with command-not-found.com