【发布时间】:2012-03-02 16:19:05
【问题描述】:
我需要在 AvalonEdit 中突出显示所有出现的选定单词。我创建了一个 HihglinghtingRule 类的实例:
var rule = new HighlightingRule()
{
Regex = regex, //some regex for finding occurences
Color = new HighlightingColor {Background = new SimpleHighlightingBrush(Colors.Red)}
};
之后我该怎么办? 谢谢。
【问题讨论】:
标签: c# wpf highlighting textedit avalonedit