myobie / Htmldiff
Licence: mit
A diff library that uses html tags to show differences
Stars: ✭ 218
Programming Languages
ruby
36898 projects - #4 most used programming language
The code is this repo is very old and is here to be read and learned from. It is not maintained. 🕶
class Stuff
class << self include HTMLDiff end
or extend HTMLDiff ?
end
Stuff.diff('a word is here', 'a nother word is there')
=> 'a<ins class="diffins"> nother word is <del class="diffmod">here<ins class="diffmod">there'
Checkout the crappy specs for good examples.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].