Exemplo n.º 1
0
 // Methods
 public SyntaxSettings()
 {
     this.lexStyles     = null;
     this.showMargin    = true;
     this.showGutter    = true;
     this.highlightUrls = true;
     this.gutterWidth   = EditConsts.DefaultGutterWidth;
     this.marginPos     = EditConsts.DefaultMarginPosition;
     int[] numArray1 = new int[1] {
         EditConsts.DefaultTabStop
     };
     this.tabStops         = numArray1;
     this.font             = new System.Drawing.Font(FontFamily.GenericMonospace, 10f);
     this.navigateOptions  = EditConsts.DefaultNavigateOptions;
     this.scrollBars       = RichTextBoxScrollBars.Both;
     this.selectionOptions = EditConsts.DefaultSelectionOptions;
     this.gutterOptions    = EditConsts.DefaultGutterOptions;
     this.outlineOptions   = EditConsts.DefaultOutlineOptions;
     this.lexStyles        = new LexStyle[LexStyleItems.Items.Length];
     for (int num1 = 0; num1 < this.lexStyles.Length; num1++)
     {
         LexStyle     style1 = new LexStyle();
         LexStyleItem item1  = LexStyleItems.Items[num1];
         style1.Name          = item1.InternalName;
         style1.Desc          = item1.Name;
         style1.ForeColor     = item1.ForeColor;
         style1.BackColor     = item1.BackColor;
         style1.FontStyle     = item1.FontStyle;
         style1.PlainText     = item1.PlainText;
         this.lexStyles[num1] = style1;
     }
 }
Exemplo n.º 2
0
        // Methods
        static LexStyleItems()
        {
            LexStyleItem[] itemArray1 = new LexStyleItem[12] {
                new LexStyleItem("Identifiers", "idents"),
                new LexStyleItem("Numbers", "numbers"),
                new LexStyleItem("ResWords", "reswords", EditConsts.DefaultReswordForeColor),
                new LexStyleItem("Comments", "comments", EditConsts.DefaultCommentsForeColor, Color.Empty, EditConsts.DefaultCommentsFontStyle, true),
                new LexStyleItem("Strings", "strings", EditConsts.DefaultStringsForeColor, Color.Empty, FontStyle.Regular, true),
                new LexStyleItem("WhiteSpace", "whitespace"),
                new LexStyleItem("Directives", "directives", EditConsts.DefaultDirectivesForeColor),
                new LexStyleItem("XML Comments", "xmlcomments", EditConsts.DefaultXmlCommentsForeColor, Color.Empty, FontStyle.Regular, true),
                new LexStyleItem("HTML tags", "htmltags", EditConsts.DefaultHtmlTagsForeColor),
                // SMC: changed "line numbers" to "linenumbers"
                new LexStyleItem("Line Numbers", "linenumbers", EditConsts.DefaultLineNumbersForeColor),
                new LexStyleItem("HyperText", "hypertext", EditConsts.DefaultHyperTextForeColor, Color.Empty, EditConsts.DefaultUrlFontStyle, false),
                new LexStyleItem("Misspelled Words", "spelling", EditConsts.DefaultSpellForeColor)
            };

            LexStyleItems.Items = itemArray1;
        }