Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 742 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 742 Bytes

Html-diff Build Status

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