Overview of Diff Match and Patch capabilities
masterThe Diff Match and Patch libraries provide three core operations for synchronizing plain text:
- Diff: Compares two blocks of plain text and returns an efficient list of differences.
- Match: Finds the best fuzzy match for a search string within a block of plain text, weighted for both accuracy and location.
- Patch: Applies a list of patches to plain text using a best-effort approach, even if the underlying text has changed slightly.