caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

Documentation for HTML tags and CSS classes #29

Open maliayas opened 8 years ago

maliayas commented 8 years ago

Is there any reference for the generated HTML tags (<ins>, <del>) and CSS classes (.diffmod, .diffins, etc)?

jschroed91 commented 8 years ago

@maliayas I just started working on updating the documentation this past weekend - going in small chunks but I plan to cover this next, now that I have basic documentation of usage/ configuration done.

cookieguru commented 5 years ago

I dug through the source and found all the classes:

Additionally, if the href changes on a link, the classes diffa and diffhref will be added. Similarly, diffimg and diffsrc will be added on images whose source changes.

jschroed91 commented 5 years ago

@cookieguru That's awesome, thank you! We should get this added to the README. Please feel free to open a PR with the update if you'd like! Otherwise if I have some time this weekend I'll get it added.

cookieguru commented 5 years ago

I spoke too soon. Those are just the tip of the iceberg. Need to dig in to this some more before I throw a PR your way.