Skip to content

regis-leray/html-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create a diff html / side by side

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages