Exemple #1
0
 public VisualMarkerEventArgs(Style style, StyleVisualMarker marker, MouseEventArgs args)
     : base(args.Button, args.Clicks, args.X, args.Y, args.Delta)
 {
     this.Style = style;
     this.Marker = marker;
 }
Exemple #2
0
 public void InitStyleSchema(Language lang)
 {
     switch (lang)
     {
         case Language.CSharp:
             StringStyle = BrownStyle;
             CommentStyle = GreenStyle;
             NumberStyle = MagentaStyle;
             AttributeStyle = GreenStyle;
             ClassNameStyle = BoldStyle;
             KeywordStyle = BlueStyle;
             CommentTagStyle = GrayStyle;
             break;
         case Language.VB:
             StringStyle = BrownStyle;
             CommentStyle = GreenStyle;
             NumberStyle = MagentaStyle;
             ClassNameStyle = BoldStyle;
             KeywordStyle = BlueStyle;
             break;
         case Language.HTML:
             CommentStyle = GreenStyle;
             TagBracketStyle = BlueStyle;
             TagNameStyle = MaroonStyle;
             AttributeStyle = RedStyle;
             AttributeValueStyle = BlueStyle;
             HtmlEntityStyle = RedStyle;
             break;
         case Language.JS:
             StringStyle = BrownStyle;
             CommentStyle = GreenStyle;
             NumberStyle = MagentaStyle;
             KeywordStyle = BlueStyle;
             KeywordStyle = BlueStyle;
             break;
         case Language.PHP:
             StringStyle = RedStyle;
             CommentStyle = GreenStyle;
             NumberStyle = RedStyle;
             VariableStyle = MaroonStyle;
             KeywordStyle = MagentaStyle;
             KeywordStyle2 = BlueStyle;
             KeywordStyle3 = GrayStyle;
             break;
         case Language.SQL:
             StringStyle = RedStyle;
             CommentStyle = GreenStyle;
             NumberStyle = MagentaStyle;
             KeywordStyle = BlueStyle;
             StatementsStyle = BlueBoldStyle;
             FunctionsStyle = MaroonStyle;
             VariableStyle = MaroonStyle;
             TypesStyle = BrownStyle;
             break;
     }
 }
Exemple #3
0
 public StyleVisualMarker(Rectangle rectangle, Style style)
     : base(rectangle)
 {
     this.Style = style;
 }