public HighlightWordsRule(XElement rule)
        {
            Words   = new List <string>();
            Options = new RuleOptions(rule);

            string wordsStr = rule.Element("Words").Value;

            string[] words = Regex.Split(wordsStr, "\\s+");

            foreach (string word in words)
            {
                if (!string.IsNullOrWhiteSpace(word))
                {
                    Words.Add(word.Trim());
                }
            }
        }
 public AdvancedHighlightRule(XElement rule)
 {
     Expression = rule.Element("Expression").Value.Trim();
     Options    = new RuleOptions(rule);
 }
 public HighlightLineRule(XElement rule)
 {
     LineStart = rule.Element("LineStart").Value.Trim();
     Options   = new RuleOptions(rule);
 }