Thanks for the pointer to WinMerge
. Unfortunately, according to the documentation, it appears that it can't quite do what I want, which is to ignore line splits.
$query="select field1, field2, field3 from " . TABLE_NAME . " where field4 = '" . $value1 . "' and field5 = '" . $value2 . "' order by field2";
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".