Side by side Demos:
Sample 1: DiffPlex side by side: Original DiffPlex sample from Aiikon
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 1: DiffLib side by side:
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 1: DiffLib side by side (char level):
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 3: DiffPlex side by side: Aiikon yellow style
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffLib side by side: Aiikon yellow style
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffLib side by side (char level):
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Inline Demos:
Sample 1: DiffPlex inline: Second original DiffPlex sample from Aiikon
| L | R | D | Line |
|---|
| 1 | 1 | | ABC abc |
| 2 | | - | DEF def |
| 2 | + | DEF DEF |
| 3 | | - | HIJ |
| 4 | 3 | | KLM |
| 4 | + | XYZ |
Sample 1: DiffLib inline:
| L | R | D | Line |
|---|
| 1 | 1 | | ABC abc |
| 2 | | - | DEF def |
| 2 | + | DEF DEF |
| 3 | | - | HIJ |
| 4 | 3 | | KLM |
| 4 | + | XYZ |
Sample 3: DiffPlex inline:
| L | R | D | Line |
|---|
| 1 | 1 | | This line is the same |
| 2 | 2 | | This line is also the same |
| 3 | | - | This line has been deleted |
| 4 | 3 | | This line is yet another equal line |
| 4 | + | This line has been added |
| 5 | 5 | | This is also another equal line |
| 6 | | - | This line is changed |
| 6 | + | This line was changed to this |
| 7 | | - | This line is also changed |
| 7 | + | And then this was added |
| 8 | + | And this line was changed to this |
| 8 | 9 | | This is the final equal line |
Sample 3: DiffLib inline:
| L | R | D | Line |
|---|
| 1 | 1 | | This line is the same |
| 2 | 2 | | This line is also the same |
| 3 | | - | This line has been deleted |
| 4 | 3 | | This line is yet another equal line |
| 4 | + | This line has been added |
| 5 | 5 | | This is also another equal line |
| 6 | | - | This line is changed |
| 6 | + | This line was changed to this |
| 7 | | - | This line is also changed |
| 7 | + | And then this was added |
| 8 | + | And this line was changed to this |
| 8 | 9 | | This is the final equal line |
Compact Demos:
Sample 1: DiffLib compact:
ABC abc
* DEF defDEF
- HIJ
KLM
+ XYZ
Sample 1: DiffPlex compact:
ABC abc
* DEF defDEF
- HIJ
KLM
+ XYZ
Sample 3: DiffLib compact: Original DiffLib 001 sample (Basic diffing of two text files)
This line is the same
This line is also the same
- This line has been deleted
This line is yet another equal line
+ This line has been added
This is also another equal line
* This line iwas changed to this
* TAnd then this line iwas also changdded
+ And this line was changed to this
This is the final equal line
Sample 3: DiffPlex compact: Not the same as the original DiffLib sample, but not bad:
This line is the same
This line is also the same
- This line has been deleted
This line is yet another equal line
+ This line has been added
This is also another equal line
* This line iswas changed to this
* ThisAnd linethen isthis alsowas changedadded
+ And this line was changed to this
This is the final equal line
Sample 2: DiffPlex compact:
* This is aanother test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffLib compact :
* This is another test of the diffsame implementation, with some more text that is deleted.
Track changes Demos:
Sample 1:
ABC abc
DEF def
HIJ
KLM
ABC abc
DEF DEF
KLM
XYZ
Sample 1: DiffLib track changes:
ABC abc
DEF def
HIJDEF
KLM
XYZ
Sample 1: DiffMatchPatch track changes:
ABC abc
DEF def
HIJ
KLMDEF
KLM
XYZ
Sample 2:
This is a test of the diff implementation, with some text that is deleted.
This is another test of the same implementation, with some more text.
Sample 2: DiffLib track changes: Original DiffLib 000 sample (Basic diffing of two texts)
This is another test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffPlex compact:
* This is aanother test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffLib compact :
* This is another test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffMatchPatch track changes:
This is another test of the diffsame implementation, with some text that is deletedmore text.
Sample 3:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This is also another equal line
This line is changed
This line is also changed
This is the final equal line
This line is the same
This line is also the same
This line is yet another equal line
This line has been added
This is also another equal line
This line was changed to this
And then this was added
And this line was changed to this
This is the final equal line
Sample 3: DiffLib track changes:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This line has been added
This is also another equal line
This line was changed to this
And then this was added
And this line was changed
T to this line is also changed
This is the final equal line
Sample 3: DiffMatchPatch track changes:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This line has been added
This is also another equal line
This line iwas changed
This line is also changed to this
And then this was added
And this line was changed to this
This is the final equal line
Sample 1 Demos:
Sample 1:
ABC abc
DEF def
HIJ
KLM
ABC abc
DEF DEF
KLM
XYZ
Sample 1: DiffPlex side by side: Original DiffPlex sample from Aiikon
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 1: DiffLib side by side:
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 1: DiffLib side by side (char level):
| L | Left | Delta | Right | R |
| 1 | ABC abc | == | ABC abc | 1 |
| 2 | DEF def | <> | DEF DEF | 2 |
| 3 | HIJ | << | | |
| 4 | KLM | == | KLM | 3 |
| | >> | XYZ | 4 |
Sample 1: DiffPlex inline: Second original DiffPlex sample from Aiikon
| L | R | D | Line |
|---|
| 1 | 1 | | ABC abc |
| 2 | | - | DEF def |
| 2 | + | DEF DEF |
| 3 | | - | HIJ |
| 4 | 3 | | KLM |
| 4 | + | XYZ |
Sample 1: DiffLib inline:
| L | R | D | Line |
|---|
| 1 | 1 | | ABC abc |
| 2 | | - | DEF def |
| 2 | + | DEF DEF |
| 3 | | - | HIJ |
| 4 | 3 | | KLM |
| 4 | + | XYZ |
Sample 1: DiffLib compact:
ABC abc
* DEF defDEF
- HIJ
KLM
+ XYZ
Sample 1: DiffPlex compact:
ABC abc
* DEF defDEF
- HIJ
KLM
+ XYZ
Sample 1: DiffLib track changes:
ABC abc
DEF def
HIJDEF
KLM
XYZ
Sample 1: DiffMatchPatch track changes:
ABC abc
DEF def
HIJ
KLMDEF
KLM
XYZ
Sample 2 Demos:
Sample 2:
This is a test of the diff implementation, with some text that is deleted.
This is another test of the same implementation, with some more text.
Sample 2: DiffPlex compact:
* This is aanother test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffLib track changes: Original DiffLib 000 sample (Basic diffing of two texts)
This is another test of the diffsame implementation, with some more text that is deleted.
Sample 2: DiffMatchPatch track changes:
This is another test of the diffsame implementation, with some text that is deletedmore text.
Sample 3 Demos:
Sample 3:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This is also another equal line
This line is changed
This line is also changed
This is the final equal line
This line is the same
This line is also the same
This line is yet another equal line
This line has been added
This is also another equal line
This line was changed to this
And then this was added
And this line was changed to this
This is the final equal line
Sample 3: DiffPlex side by side: Aiikon yellow style
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffLib side by side: Aiikon yellow style
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffLib side by side (char level):
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffLib side by side (char level):
| L | Left | Delta | Right | R |
| 1 | This line is the same | == | This line is the same | 1 |
| 2 | This line is also the same | == | This line is also the same | 2 |
| 3 | This line has been deleted | << | | |
| 4 | This line is yet another equal line | == | This line is yet another equal line | 3 |
| | >> | This line has been added | 4 |
| 5 | This is also another equal line | == | This is also another equal line | 5 |
| 6 | This line is changed | <> | This line was changed to this | 6 |
| 7 | This line is also changed | <> | And then this was added | 7 |
| | >> | And this line was changed to this | 8 |
| 8 | This is the final equal line | == | This is the final equal line | 9 |
Sample 3: DiffPlex inline:
| L | R | D | Line |
|---|
| 1 | 1 | | This line is the same |
| 2 | 2 | | This line is also the same |
| 3 | | - | This line has been deleted |
| 4 | 3 | | This line is yet another equal line |
| 4 | + | This line has been added |
| 5 | 5 | | This is also another equal line |
| 6 | | - | This line is changed |
| 6 | + | This line was changed to this |
| 7 | | - | This line is also changed |
| 7 | + | And then this was added |
| 8 | + | And this line was changed to this |
| 8 | 9 | | This is the final equal line |
Sample 3: DiffLib inline:
| L | R | D | Line |
|---|
| 1 | 1 | | This line is the same |
| 2 | 2 | | This line is also the same |
| 3 | | - | This line has been deleted |
| 4 | 3 | | This line is yet another equal line |
| 4 | + | This line has been added |
| 5 | 5 | | This is also another equal line |
| 6 | | - | This line is changed |
| 6 | + | This line was changed to this |
| 7 | | - | This line is also changed |
| 7 | + | And then this was added |
| 8 | + | And this line was changed to this |
| 8 | 9 | | This is the final equal line |
Sample 3: DiffLib compact: Original DiffLib 001 sample (Basic diffing of two text files)
This line is the same
This line is also the same
- This line has been deleted
This line is yet another equal line
+ This line has been added
This is also another equal line
* This line iwas changed to this
* TAnd then this line iwas also changdded
+ And this line was changed to this
This is the final equal line
Sample 3: DiffPlex compact: Not the same as the original DiffLib sample, but not bad:
This line is the same
This line is also the same
- This line has been deleted
This line is yet another equal line
+ This line has been added
This is also another equal line
* This line iswas changed to this
* ThisAnd linethen isthis alsowas changedadded
+ And this line was changed to this
This is the final equal line
Sample 3: DiffLib track changes:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This line has been added
This is also another equal line
This line was changed to this
And then this was added
And this line was changed
T to this line is also changed
This is the final equal line
Sample 3: DiffMatchPatch track changes:
This line is the same
This line is also the same
This line has been deleted
This line is yet another equal line
This line has been added
This is also another equal line
This line iwas changed
This line is also changed to this
And then this was added
And this line was changed to this
This is the final equal line
DiffMatchPatch Demos:
Sample n°1 using DiffMatchPatch
Hello World.
Goodbye World.
Differences:
Diff(DELETE,"Hello")
Diff(INSERT,"Goodbye")
Diff(EQUAL," World.")
Using Html:
HelloGoodbye World.
Sample n°2 Two strings to compare
The cat is on the carpet
The dog is under the carpet
Différences :
EQUAL: The
DELETE: cat
INSERT: dog
EQUAL: is
DELETE: on
INSERT: under
EQUAL: the carpet
Using Html:
The catdog is onunder the carpet
Sample n°3 Creating and applying a patch
The cat is on the carpet
The cat is on the sofa
Patch generated: @@ -15,10 +15,8 @@
the
-carpet
+sofa
Text after applying the patch: The cat is on the sofa
Patch Application Results:
Patch applied? True
Sample n°4 Diff on multi-line texts
Line1
Line2
Line3
Line1
LineModified
Line3
Line by line differences:
EQUAL: Line1
DELETE: Line2
INSERT: LineModified
EQUAL: Line3
Using Html:
Line1¶
Line2¶
LineModified¶
Line3