I want to make an application typing application which have two text boxes, one is source from where the user can see the text to write in the second text box. When the user submits the result then it will show the error in the type text by comparing with source text box text. I try with diff-match-patch but not able to get result I want.
I have developed the same with diff class in php. But now want in vb for desktop application.
using DiffMatchPatch;
using System;
using System.Collections.Generic;
public class hello {
public static void Main(string[] args) {
diff_match_patch dmp = new diff_match_patch();
List<Diff> diff = dmp.diff_main("Hello World.", "Goodbye World.");
// Result: [(-1, "Hell"), (1, "G"), (0, "o"), (1, "odbye"), (0, " World.")]
dmp.diff_cleanupSemantic(diff);
// Result: [(-1, "Hello"), (1, "Goodbye"), (0, " World.")]
for (int i = 0; i < diff.Count; i++) {
Console.WriteLine(diff[i]);
}
}
}