tool CsDiff from ComponentSoftware Inc. is free of charge and does what you want
for GuiXT scripts and InputScripts. They also provide a low-cost comparison tool
for HTML files that is useful if you work with GuiXT Controls or GuiXT Viewer.
We are considering integrating a comparison tool from ComponentSoftware into one
of the forthcoming script editor versions (planned for end of 2011).