Side by side Demos:



Sample 1: DiffPlex side by side: Original DiffPlex sample from Aiikon
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def<>DEF DEF2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 1: DiffLib side by side:
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def <>DEF DEF 2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 1: DiffLib side by side (char level):
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def<>DEF DEF2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 3: DiffPlex side by side: Aiikon yellow style
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed<>This line was changed to this6
7This line is also changed<>And then this was added7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffLib side by side: Aiikon yellow style
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed <>This line was changed to this 6
7This line is also changed <>And then this was added 7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffLib side by side (char level):
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed<>This line was changed to this6
7This line is also changed<>And then this was added7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Inline Demos:



Sample 1: DiffPlex inline: Second original DiffPlex sample from Aiikon
LRDLine
11ABC abc
2-DEF def
2+DEF DEF
3-HIJ
43KLM
4+XYZ

Sample 1: DiffLib inline:
LRDLine
11ABC abc
2-DEF def
2+DEF DEF
3-HIJ
43KLM
4+XYZ

Sample 3: DiffPlex inline:
LRDLine
11This line is the same
22This line is also the same
3-This line has been deleted
43This line is yet another equal line
4+This line has been added
55This 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
89This is the final equal line

Sample 3: DiffLib inline:
LRDLine
11This line is the same
22This line is also the same
3-This line has been deleted
43This line is yet another equal line
4+This line has been added
55This 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
89This 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
KLM
DEF
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
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def<>DEF DEF2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 1: DiffLib side by side:
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def <>DEF DEF 2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 1: DiffLib side by side (char level):
LLeftDeltaRightR
1ABC abc==ABC abc1
2DEF def<>DEF DEF2
3HIJ<<
4KLM==KLM3
>>XYZ4

Sample 1: DiffPlex inline: Second original DiffPlex sample from Aiikon
LRDLine
11ABC abc
2-DEF def
2+DEF DEF
3-HIJ
43KLM
4+XYZ

Sample 1: DiffLib inline:
LRDLine
11ABC abc
2-DEF def
2+DEF DEF
3-HIJ
43KLM
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
KLM
DEF
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
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed<>This line was changed to this6
7This line is also changed<>And then this was added7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffLib side by side: Aiikon yellow style
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed <>This line was changed to this 6
7This line is also changed <>And then this was added 7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffLib side by side (char level):
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed<>This line was changed to this6
7This line is also changed<>And then this was added7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffLib side by side (char level):
LLeftDeltaRightR
1This line is the same==This line is the same1
2This line is also the same==This line is also the same2
3This line has been deleted<<
4This line is yet another equal line==This line is yet another equal line3
>>This line has been added4
5This is also another equal line==This is also another equal line5
6This line is changed<>This line was changed to this6
7This line is also changed<>And then this was added7
>>And this line was changed to this8
8This is the final equal line==This is the final equal line9

Sample 3: DiffPlex inline:
LRDLine
11This line is the same
22This line is also the same
3-This line has been deleted
43This line is yet another equal line
4+This line has been added
55This 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
89This is the final equal line

Sample 3: DiffLib inline:
LRDLine
11This line is the same
22This line is also the same
3-This line has been deleted
43This line is yet another equal line
4+This line has been added
55This 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
89This 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