我需要在AvalonEdit中突出显示所选单词的所有出现。我创建了HihglinghtingRule类的实例:
var rule = new HighlightingRule()
{
Regex = regex, //some regex for finding occurences
Color = new HighlightingColor {Background = new SimpleHighlightingBrush(Colors.Red)}
};
在这之后我应该做些什么呢?谢谢。