Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any methods for generating context/unified diff format of two texts #1

Open
liudonghua123 opened this issue May 29, 2023 · 0 comments

Comments

@liudonghua123
Copy link

Hi, I want to generate context/unified diff from two texts or two text file. I can use diff [-u] file1 file2 to achieve it.
I read the docs about https://github.com/google/diff-match-patch and https://github.com/rikulo/diff-match-patch, but could not find which methods I can invoke to make it.

I can use jsdiff to generate the diff, however, I am looking for some libs in pure dart.

See also https://www.gnu.org/software/diffutils/manual/diffutils.html#Showing-Differences-in-Their-Context, https://github.com/kpdecker/jsdiff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant