Skip to content
 
 

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTMLDiff

Build Status

Installation

gem 'htmldiff', github: 'karnov/htmldiff'

Examples

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.

About

A diff library that uses html tags to show differences

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages