1
I need to color in Richtextbox filled with multiple lines, a text before a limiter, Note for example the highlights:
1- not paint because it has no limit
2- paint because it has limit: not paint
3- do not paint because there is no limit
4- paint because it has limit: not paint
(...) etc.
Note above that the limiter is :
, the word will get colored how far this limiter is. After this limiter the text will look like it is.
I need to do this while the person types more specifically at the event Textchanged from Richtextbox and when FORM starts. If the person deleted the limiter, all the text that was in such a line will get one color only. Now if the person "placed" the back limiter, the word "before "this limiter will stay with color again.
I found that the REGEX class is a good helper for this, however, I have no idea how to use it wisely.
That! is more or less like this, only when you insert many lines in Rich with a limiter, only the first one turns red, has to serve for all lines "individually". You can do it like this?
– sYsTeM
Have, I’ll arrange, in case, each line has a delimiter right?
– Ícaro Lima
Ready to go, edited.
– Ícaro Lima
Exactly, each line has its delimiter. + 1
– sYsTeM