Diff / Text Compare Tool

How would this deal with javascript or css files? Would it detect at all that they’re source code, or just be happy showing the differences?