Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/regis-leray/html-diff
- Owner: regis-leray
- License: gpl-2.0
- Created: 2014-01-28T00:38:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T18:31:29.000Z (almost 5 years ago)
- Last Synced: 2024-04-16T07:40:09.241Z (7 months ago)
- Language: Java
- Homepage:
- Size: 296 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)