postmodern / nokogiri-diff

Calculate the differences between two XML/HTML documents.
MIT License
131 stars 12 forks source link

adding a functionality to add classes on deleted and added text and elements in the document #8

Closed ramlaxmanyadav closed 2 years ago

ramlaxmanyadav commented 8 years ago

Hello,

I have added the functionality for add custom css classes on added and removed text and elements into a document. Please review the code and accept the pull request.

Thanks

postmodern commented 8 years ago

I like this idea, but I think the DocumentDiffViewer class needs configuration options or callbacks, so users can set their own CSS classes.

postmodern commented 2 years ago

Going to close this, no offense. I think this should be a separate library or tool. Also, I could see others wanting a visual-diff, similar to how GitHub displays diffs of code, where the XML/HTML is displayed raw with a red or green background color.