README
Todo List
Usage:
$diff = new WikiDiff($lines1, $lines2); // compute diff.
$fmt = new WikiDiffFormatter; echo $fmt->format($diff, $lines1); // Output HTMLified standard diff.
or to output reverse diff (diff's that would take $lines2 to $lines1):
$fmt = new WikiDiffFormatter('reversed'); echo $fmt->format($diff, $lines1);
[line 767]
[line 765]
[line 766]
WikiDiffFormatter WikiDiffFormatter( [ $reverse = false])
void format( $diff, $from_lines)
void _diff_header( $xbeg, $xlen, $ybeg, $ylen)
Overridden in child classes as:
void _emit_diff( $xbeg, $xlen, $ybeg, $ylen, $hunks)
void _emit_lines( $lines, $prefix, $color)
void _format( $edits, $from_lines)