Hi guys,
I have two richtextboxes that contain text. I want to go through each line and if a difference is found, it highlights that line on both textboxes and it would be good to highlight the difference itself too.
I have attached some code I have written.
Note some of the code is just an outline of the expected behavior.
Also, how would I ignore whitespace for each line?
Help is greatly appreciated.
void ToolLeftRefreshClick(object sender, EventArgs e)
{
String check1 = "";
String check2 = "";
foreach(String rtb1line in richTextBox1.Lines)
{
check1 = (Text on current line : richtextbox1)
check2 = (Text on current line : richtextbox2)
if(check1.equals(check2))
{
}
else
{
Highlights the line
Highlights difference
}
}
}