public void ShowDifferenceBetweenTwoFile() { diff_match_patch DIFF = new diff_match_patch(); List<Chunk> chunklist1; List<Chunk> chunklist2; diffs = DIFF.diff_main(richTextBoxCurrentVersion.Text, richTextBoxLastVersion.Text); DIFF.diff_cleanupEfficiency(diffs); chunklist1 = collectChunks(richTextBoxCurrentVersion); chunklist2 = collectChunks(richTextBoxLastVersion); paintChunks(richTextBoxCurrentVersion, chunklist1); paintChunks(richTextBoxLastVersion, chunklist2); richTextBoxCurrentVersion.SelectionLength = 0; richTextBoxLastVersion.SelectionLength = 0; }