Pretty diff to html javascript library (diff2html)
Find a file
2014-09-08 18:15:51 +01:00
.gitignore char by char diff & clean a bit 2014-08-30 23:16:38 +01:00
diff2html.css fix css for big lines 2014-09-08 18:15:51 +01:00
diff2html.js fix css for big lines 2014-09-08 18:15:51 +01:00
diff2html.min.css fix css for big lines 2014-09-08 18:15:51 +01:00
diff2html.min.js fix css for big lines 2014-09-08 18:15:51 +01:00
index.html fix css for big lines 2014-09-08 18:15:51 +01:00
LICENSE initial lines 2014-08-30 03:54:52 +01:00
README.md fix css for big lines 2014-09-08 18:15:51 +01:00

Diff to Html by rtfpessoa

Diff to Html generates pretty HTML diffs from git word diff output.

Features

  • line-by-line` diff

  • char-by-char highlight

  • new and old line numbers

  • inserted and removed lines

  • GitHub like style

Real Example

Go to Diff2HTML

Distributions

How to use

Pretty Line-by-Line Html From Git Word Diff Output

Diff2Html.getPrettyHtmlFromDiff(exInput);

Intermediate Json From Git Word Diff Output

Diff2Html.getJsonFromDiff(exInput);

Pretty Line-by-Line Html From Json

Diff2Html.getPrettyHtmlFromJson(exInput);

Check out the index.html for a complete example.

Contributions

All the contributions are welcome.

To contribute just send a pull request with your feature,fix,... and it will be reviewed asap.

License

Copyright 2014 Rodrigo Fernandes. Released under the terms of the MIT license.

Thanks

This project is inspired in pretty-diff by Scott González.