public void AddTokenDefinition(int token, TokenType type, PuppetTokenColor color, TokenTriggers trigger)
 {
     if (!definitions.ContainsKey(token))
     {
         definitions.Add(token, new TokenDefinition(type, color, trigger));
     }
 }
        private void InitCustomColor(PuppetTokenColor id, string name, string dispname, COLORINDEX foreground, COLORINDEX background, bool bold = false, bool strikethrough = false)
        {
            var fontFlags = (uint)FONTFLAGS.FF_DEFAULT;

            if (bold)
            {
                fontFlags = fontFlags | (uint)FONTFLAGS.FF_BOLD;
            }
            if (strikethrough)
            {
                fontFlags = fontFlags | (uint)FONTFLAGS.FF_STRIKETHROUGH;
            }

            ColorableItems.Add((int)id, new ColorableItem(name, dispname, foreground, background, System.Drawing.Color.Empty, System.Drawing.Color.Empty, (FONTFLAGS)fontFlags));
        }
 public TokenDefinition(TokenType type, PuppetTokenColor color, TokenTriggers triggers)
 {
     this.TokenType     = type;
     this.TokenColor    = color;
     this.TokenTriggers = triggers;
 }