Hi all,
Does anybody know offhand how to highlight certain text in a textbox(or richtextbox)? I'm trying to compare two strings that are 100,000 chars long (using String.Compare) and if they're different I'd like to know how they're different.
What I'd like to do is compare the strings one char at a time and add them to a textbox, and then highlight them based on whether they were the same or different as the other string. By highlight I mean bold, italics, in french, I don't care as long as they stick out =). Performance isn't an issue, this is for my reference only.
Alternately if someone knows an easier way to find the exact differences between two strings that would be great as well =).
Thanks in advance,
SlantyOD
Does anybody know offhand how to highlight certain text in a textbox(or richtextbox)? I'm trying to compare two strings that are 100,000 chars long (using String.Compare) and if they're different I'd like to know how they're different.
What I'd like to do is compare the strings one char at a time and add them to a textbox, and then highlight them based on whether they were the same or different as the other string. By highlight I mean bold, italics, in french, I don't care as long as they stick out =). Performance isn't an issue, this is for my reference only.
Alternately if someone knows an easier way to find the exact differences between two strings that would be great as well =).
Thanks in advance,
SlantyOD