Links
EControl Syntax Editor SDK
TRuleCollectionItem.Style Property

Specifies a style associated with the rule.

property Style: TSyntaxFormat;

 

Style is common for all rules, but it acts differently for different objects:

  1. For token rules - Style is applied to tokens.
  2. For line separators (block rule with BlockType = btLineBreak) only Style.BgColor is used as color of the horizontal line.
  3. For block rules that detects keywords - Style is applied to identifying token.
  4. For text ranges - Style is applied to different parts of text accordingly to DynHighlight property of the rule.
  5. For sub-lexer ranges - Style is applied to the range where nested lexer acts.
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!