stupid edit to test push hook
Diff to Html by rtfpessoa
Diff to Html generates pretty HTML diffs from git word diff output.
-
line-by-line
andside-by-side
diff -
char-by-char highlight
-
new and old line numbers
-
inserted and removed lines
-
GitHub like style
Go to Diff2HTML
-
Manually download and import
diff2html.js
into your page
Pretty Line-by-Line Html From Git Word Diff Output
Diff2Html.getPrettyHtmlFromDiff(exInput)
Pretty Side-by-Side Html From Git Word Diff Output
Diff2Html.getPrettySideBySideHtmlFromDiff(exInput)
Intermediate Json From Git Word Diff Output
Diff2Html.getJsonFromDiff(exInput)
Pretty Line-by-Line Html From Json
Diff2Html.getPrettyHtmlFromJson(exInput)
Pretty Side-by-Side Html From Json
Diff2Html.getPrettySideBySideHtmlFromJson(exInput)
Check out the
index.html
for a complete example.
All the contributions are welcome.
To contribute just send a pull request with your feature,fix,... and it will be reviewed asap.
Copyright 2014 Rodrigo Fernandes. Released under the terms of the MIT license.
This project is inspired in pretty-diff by Scott González.