我需要在AvalonEdit中突出显示所有选定单词.我创建了一个HihglinghtingRule类的实例:
var rule = new HighlightingRule()
{
Regex = regex, //some regex for finding occurences
Color = new HighlightingColor {Background = new SimpleHighlightingBrush(Colors.Red)}
};
Run Code Online (Sandbox Code Playgroud)
我该怎么办?谢谢.