Project

htmldiff

0.15
Repository is archived
No commit activity in last 3 years
No release in over 3 years
HTML diffs of text (borrowed from a wiki software I no longer remember)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
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</ins> word is <del class=\"diffmod\">here</del><ins class=\"diffmod\">there</ins>'

Checkout the crappy specs for good examples.