htmldiff

A diff library that uses html tags to show differences

226
108
Ruby

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.