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

example for showing diff #1178

Open
ArjunVachhani opened this issue Dec 2, 2020 · 4 comments
Open

example for showing diff #1178

ArjunVachhani opened this issue Dec 2, 2020 · 4 comments

Comments

@ArjunVachhani
Copy link

Could we have a up to date example for generating diff like we have at below url? https://jsoneditoronline.org/#right=local.boguma&left=local.raxige

I see there is one but it seems not exactly same as we have on above mentioned url.

BTW Very nice plugin, kudos

@josdejong
Copy link
Owner

The diffing solution on https://jsoneditoronline.org is implemented with some custom code on top of https://www.npmjs.com/package/diff-sequences, it's indeed very different from the basic example in https://github.com/josdejong/jsoneditor/blob/develop/examples/20_custom_css_style_for_nodes.html (I guess you're referring to that example).

The code of https://jsoneditoronline.org is not open source, though I could maybe extract the diffing code some day.

@josdejong
Copy link
Owner

BTW Very nice plugin, kudos

Thank you 👍

@bonafe
Copy link

bonafe commented Mar 16, 2022

The diffing solution on https://jsoneditoronline.org is implemented with some custom code on top of https://www.npmjs.com/package/diff-sequences, it's indeed very different from the basic example in https://github.com/josdejong/jsoneditor/blob/develop/examples/20_custom_css_style_for_nodes.html (I guess you're referring to that example).

The code of https://jsoneditoronline.org is not open source, though I could maybe extract the diffing code some day.

Where you able do extract the code? The difference functionality is very useful.

@josdejong
Copy link
Owner

Not yet, it's still somewhere on my todo list though.

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

3 participants