Introduction to Text_Diff
Содержание
Text_Diff helps you generating difference views between two or three text files.
@@ -1,3 +1,3 @@ This line is the same. -This line is different in 1.txt +This line is different in 2.txt This line is the same.
Diffs are created in two steps:
- Computing the difference of the files
- Creating the output of the difference
In Text_Diff,
an Engine is used to compute the difference
between the files/strings. The packages contains several of them:
native,
shell,
string
and xdiff.
One should use auto
to let
Text_Diff decide which one is
the best for the system.
The second part, creating the output, is made possible by renderers. Text_Diff comes with context , inline and unified renderers.