This tool compares old and new versions of html and generates color-coded html in a diff format.
brew install kemokemo/tap/htmldiff
First, add my scoop-bucket.
scoop bucket add kemokemo-bucket https://github.com/kemokemo/scoop-bucket.git
Next, install this app by running the following.
scoop install htmldiff
Get the latest version from the release page, and download the archive file for your operating system/architecture. Unpack the archive, and put the binary somewhere in your $PATH
.
$ htmldiff -h
Usage: htmldiff [<option>...] <old html> <new html>
-h display help
-nh
true: use new header, false: use old header (default true)
-o string
output filename (default "diff.html")j
When comparing two html files, you need to choose which header to use. By default, it uses the new header. To use the header of the old html file, set -nh=false
flag. ( -nh
means "use new header". )
htmldiff -o=diff/index.html v1/index.html v2/index.html
If you use the header of v1/index.html
, set -nh=false
flag.
htmldiff -o=diff/index.html -nh=false v1/index.html v2/index.html