Thanks for the pointer to
WinMerge,
Tranz. Unfortunately, according to the documentation, it appears that it can't quite do what I want, which is to ignore line splits.
Original code:
$query="select field1, field2, field3 from " . TABLE_NAME . " where field4 = '" . $value1 . "' and field5 = '" . $value2 . "' order by field2";
My revision:
$query="
SELECT field1,
field2,
field3
FROM " . TABLE_NAME .
" WHERE field4 = '" . $value1 . "' AND
field5 = '" . $value2 . "'
ORDER BY field2";
Much easier to read, understand, and update, but comparison tools won't understand it as "the same".