Whole line is highlighted if one character changed so the diff is not useful. Implement word diff or let us integrate delta which is better.