Skip to content

miyako/4d-plugin-diff-match-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

version platform license downloads

4d-plugin-diff-match-patch

Basic implementation of google-diff-match-patch

Screenshot

2018-02-14 15 49 21

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.

Syntax

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