Pretty diff to html javascript library (diff2html)
Find a file
2014-08-30 14:16:13 +01:00
diff2html.js added and deleted lines per file 2014-08-30 14:16:13 +01:00
LICENSE initial lines 2014-08-30 03:54:52 +01:00
README.md initial lines 2014-08-30 03:54:52 +01:00
style.css added and deleted lines per file 2014-08-30 14:16:13 +01:00
template.html initial lines 2014-08-30 03:54:52 +01:00

Diff to Html by rtfpessoa

Diff to Html generates pretty HTML diffs from regular command line tools output.

Inspiration

This project is inspired in pretty-diff by Scott González. This project started with some code from pretty-diff but it was then re-written and is now a browser library.

Features

  • line-by-line diff (not side-by-side)

  • new and old line numbers

  • GitHub like style

Setup

Simply import the diff2html.js invoke:

var diff2Html = Diff2Html.getInstance();
diff2Html.generatePrettyDiff(exInput);

Check out the template.html for a complete example.

Contribution

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.