Diff, Match and Patch

A port of Google Diff Match and Patch library to Dart

Usage

import "package:diff_match_patch2/diff_match_patch.dart";

...
  final dmp = DiffMatchPatch();
  dmp.patch_main(oldText, newText);
  • Patch and Diff can be jsonized. To decode, use Patch.fromJson and Diff.fromJson.
  • patch_main in Google Diff Match and Patch library are split into patch_main, patch_diffs and patch_make for strong types.

Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data

Libraries

diff_match_patch