SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

AvalonEdit Highlight whole words

Last post 05-18-2017 10:17 AM by DonPromillo. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-18-2017 10:17 AM

    AvalonEdit Highlight whole words

    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.

     

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.