Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

AvalonEdit Highlight whole words

$
0
0

Hello together,

I'm currently working in a project where we need to show the customers a large amount of text. The customers need an easy way to overview the text. So they can define their own highlighting and add specific words with specific colors. This is no problem. I could already implement everything using AvalonEdit.

I only have one small problem. If the user for example enters *for* this means every word, which contains the part "for" should be highlighted.

For exmaple:

  • force
  • uniform
  • for
  • etc.

Using regular expressions this is very easy. But the Texteditor only highlightes the "for". But it is important that the users can specify if they want the whole word to be highlighted or only the matched part.

Hopefully anyone can help me with this. I already did some researches, but I couldn't find anything how this could be solved.

 


Viewing all articles
Browse latest Browse all 1764

Trending Articles