DocDiff compares two files and shows the difference. It can compare files word by word, char by char, or line by line. It has several output formats such as HTML, tty, Manued, or user-defined markup.
It supports several encodings and end-of-line characters, including ASCII, UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF.
Ruby (Tested with Ruby 1.8/i386-linux, 1.8/Cygwin)
(Note that you may need additional ruby library such as iconv and uconv, if your OS's Ruby package does not include those.)
What's New in 0.3:
* Re-designed and re-written from scratch.
* Supports multiple encodings (ASCII, EUC-JP, Shift_JIS, UTF-8) and multiple eols (CR, LF, CRLF).
* Supports more output formats (tty, HTML, Manued, wdiff-like, user-defined markup text).
* Supports configuration files (/etc/docdiff/docdiff.conf, ~/etc/docdiff/docdiff.conf (or ~/.docdiff/docdiff.conf)).
* Introduced digest (summary) mode.
* Approximately 200% faster than older versions, thanks to akr's diff library.
* Better documentation and help message.
* License changed from Ruby's to modified BSD style.
* Pure Ruby. Does not require external diff program such as GNU diff, or morphological analyzer such as ChaSen.
* Runs on both Unix and Windows (tested on Debian GNU/Linux and Cygwin)