https://github.com/miyako/4d-plugin-diff-match-patch
Basic implementation of google-diff-match-patch
https://github.com/miyako/4d-plugin-diff-match-patch
4d-plugin
Last synced: 17 days ago
JSON representation
Basic implementation of google-diff-match-patch
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-diff-match-patch
- Owner: miyako
- License: mit
- Created: 2018-02-14T09:48:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T01:27:18.000Z (over 4 years ago)
- Last Synced: 2025-02-26T04:18:29.759Z (over 1 year ago)
- Topics: 4d-plugin
- Language: C++
- Homepage:
- Size: 14.9 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](LICENSE)

# 4d-plugin-diff-match-patch
Basic implementation of [google-diff-match-patch](https://github.com/google/diff-match-patch)
### Screenshot

instead of standard ```` and ```` tags with ``background`` style, the library is modified to return ```` 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](https://github.com/miyako/4d-plugin-diff-match-patch/blob/master/diff_match_patch/cpp/diff_match_patch.h) for details