adeel / xhtmldiff

Ruby library to see redlines on XHTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XHTML Diff

Purpose

To transform two revisions of an XHTML document into a single valid XHMTL document with redlines, using the and tags.

Requirements

  • Diff::LCS
  • REXML (Standard Library in 1.8)
  • Delegate (Standard Library)

Installing

Add this line to your application's Gemfile:

gem 'xhtmldiff'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xhtmldiff

That's it.

Other notes

There is some simple CSS suggested in the examples directory. It's just a sample, but I think it makes decent browsers do the right thing.

Author

Aria Stewart aredridel@nbtsc.org

Tweaks by Jacques Distler.

About

Ruby library to see redlines on XHTML


Languages

Language:Ruby 97.0%Language:CSS 3.0%