Skip to content

This tool compares old and new versions of html and generates color-coded html in a diff format.

License

Notifications You must be signed in to change notification settings

kemokemo/htmldiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmldiff

License: MIT test-and-build

This tool compares old and new versions of html and generates color-coded html in a diff format.

htmldiff-samle

Install

Homebrew

brew install kemokemo/tap/htmldiff

Scoop

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

Binary

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.

Usage

$ 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". )

Example

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

License

MIT

Author

kemokemo

About

This tool compares old and new versions of html and generates color-coded html in a diff format.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published