Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/regis-leray/html-diff

Create a diff html / side by side
https://github.com/regis-leray/html-diff

Last synced: 4 days ago
JSON representation

Create a diff html / side by side

Awesome Lists containing this project

README

        

Html-diff [![Build Status](https://travis-ci.org/regis-leray/html-diff.png?branch=master)](https://travis-ci.org/regis-leray/html-diff)
=========

The text comparaison file / Side by Side

How to use
==========

By default it generate a diff html file in your tmp directory by using the system property java.io.tmpdir.
```
DiffParams params = new DiffParams.Builder()
.left(new File("old.txt"))
.right(new File("new.txt"))
.build();

new HtmlDiff().diff(params);
```

You can specify an output file :
```
new HtmlDiff()
.setOutput(new File("/home/scott/test.html"))
.diff(params);
```

Here an example :

![alt tag](https://raw.github.com/regis-leray/html-diff/master/screenshot.png)