We’re on the home stretch, finalizing the features that will be available for the public beta of SyntaxEditor for WPF.
In a recent post we talked about an extensibility point where you can create custom search pattern providers. These providers let your end users type in find/replace search patterns in a custom format that you designate.
Built-in pattern providers include: Normal, Regular Expression, and Wildcard.
Well now we’ve added two more, Acronym and Shorthand. These are based on the similar algorithms we use when doing completion list matching such as in this post.
Acronym Searching
Acronym searching matches a character at the start of a word, then every capital letter or character following an underscore.
|

The text “FindR” matched with an Acronym search
|
In this example, we searched for fr, and SyntaxEditor highlighted the match result FindR.
Shorthand Searching
Shorthand searching is even more open in scope than acronyms. It allows any non-whitespace character to be between the search pattern characters.
|

The text “for” matched with a Shorthand search
|
In this example, we still kept the same fr search pattern but changes the search type to Shorthand. You can see how SyntaxEditor highlighted the text for in the word therefore.
Summary
These new search types are built into every SyntaxEditor instance by default for your end users to enjoy. Small details like these always improve the end user experience.
The great thing about these new search pattern providers is that you could just as easily created them (or any other custom one) yourself as described in this blog post.