SimpleTextDiff (open)
Gives a simple text diff between the lines of the texts
Syntax
LOADLIB "wh::util/comparisons.whlib";
STRING FUNCTION SimpleTextDiff(STRING leftfile, STRING rightfile, RECORD options)Parameters
STRING leftfileOriginal (or expected) text
STRING rightfileModified (or actual) text
RECORD optionsOptions
colorIf TRUE, add ANSI-color code to highlight differences
headerIf TRUE, add a patch header, if FALSE output the whole file
Return value
STRINGFormatted difference between the two texts