Basic implementation of google-diff-match-patch
instead of standard <ins>
and <del>
tags with background
style, the library is modified to return <span>
with background-color
style, for better compatibility with 4D multi style text.
diff:=diff_match_patch (old;new{;options})
Parameter | Type | Description |
---|---|---|
old | TEXT | |
new | TEXT | |
options | TEXT | JSON |
diff | TEXT | 4D styled text (HTML subset) |
- Properties of options and thier default values
diffTimeout
:1.0
diffEditCost
:4
patchMargin
:4
patchDeleteThreshold
:0.5
matchThreshold
:0.5
matchDistance
:1000
matchMaxBits
:32
see diff_match_patch.h for details