Hello Experts,
I am trying to parse custom HTML tags into richtext editor. My main problem is highlighting the text that is between:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <<span style="color:#A31515; Text_Preset_3<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; Text_Preset_3<span style="color:Blue; >
[/code]
tags with the color Yellow. I just cant find a logic way to create a loop that selects the text between the tags and highlights it with yellow. Ive managed to highlight the text between the two tags but only the first occourence as the IndexOf methods
limitations. Can you please show me how to loop trough a RichTextBox and highlight all text between the two tags I specified?
Thank You for your time,
Csiki Paul
View the full article
I am trying to parse custom HTML tags into richtext editor. My main problem is highlighting the text that is between:
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <<span style="color:#A31515; Text_Preset_3<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; Text_Preset_3<span style="color:Blue; >
[/code]
tags with the color Yellow. I just cant find a logic way to create a loop that selects the text between the tags and highlights it with yellow. Ive managed to highlight the text between the two tags but only the first occourence as the IndexOf methods
limitations. Can you please show me how to loop trough a RichTextBox and highlight all text between the two tags I specified?
Thank You for your time,
Csiki Paul
View the full article