Exemple #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;
     }
 }
Exemple #2
0
 // Methods
 public XmlSyntaxSettingsInfo()
 {
     this.navigateOptions  = EditConsts.DefaultNavigateOptions;
     this.scrollBars       = RichTextBoxScrollBars.Both;
     this.selectionOptions = EditConsts.DefaultSelectionOptions;
     this.gutterOptions    = EditConsts.DefaultGutterOptions;
     this.outlineOptions   = EditConsts.DefaultOutlineOptions;
     this.showGutter       = true;
     this.showMargin       = true;
     this.highlightUrls    = true;
     this.gutterWidth      = EditConsts.DefaultGutterWidth;
     this.marginPos        = EditConsts.DefaultMarginPosition;
     int[] numArray1 = new int[1] {
         EditConsts.DefaultTabStop
     };
     this.tabStops = numArray1;
     LexStyle[] styleArray1 = new LexStyle[0];
     this.lexStyles = styleArray1;
     this.fontName  = FontFamily.GenericMonospace.Name;
     this.fontSize  = 10f;
     this.fontStyle = System.Drawing.FontStyle.Regular;
 }