forked from PavelTorgashov/FastColoredTextBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoIndentCharsSample.Designer.cs
108 lines (102 loc) · 4.67 KB
/
AutoIndentCharsSample.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
namespace Tester
{
partial class AutoIndentCharsSample
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label1 = new System.Windows.Forms.Label();
this.fctb = new FastColoredTextBoxNS.FastColoredTextBox();
((System.ComponentModel.ISupportInitialize)(this.fctb)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(490, 42);
this.label1.TabIndex = 2;
this.label1.Text = "This example demonstrates AutoIndentChars functionality.\r\nPress Ctrl-I or type ne" +
"w command.";
//
// fctb
//
this.fctb.AutoCompleteBracketsList = new char[] {
'(',
')',
'{',
'}',
'[',
']',
'\"',
'\"',
'\'',
'\''};
this.fctb.AutoIndentCharsPatterns = "^\\s*[\\w\\.]+(\\s\\w+)?\\s*(?<range>=)\\s*(?<range>[^;=]+);\r\n^\\s*(case|default)\\s*[^:]*(?<range>:)\\s*(?<range>[^;]+);";
this.fctb.AutoScrollMinSize = new System.Drawing.Size(137, 180);
this.fctb.BackBrush = null;
this.fctb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.fctb.BracketsHighlightStrategy = FastColoredTextBoxNS.BracketsHighlightStrategy.Strategy2;
this.fctb.CharHeight = 15;
this.fctb.CharWidth = 7;
this.fctb.Cursor = System.Windows.Forms.Cursors.IBeam;
this.fctb.DelayedEventsInterval = 500;
this.fctb.DelayedTextChangedInterval = 500;
this.fctb.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
this.fctb.Dock = System.Windows.Forms.DockStyle.Fill;
this.fctb.Font = new System.Drawing.Font("Consolas", 9.75F);
this.fctb.IsReplaceMode = false;
this.fctb.LeftBracket = '(';
this.fctb.LeftBracket2 = '{';
this.fctb.Location = new System.Drawing.Point(0, 42);
this.fctb.Name = "fctb";
this.fctb.Paddings = new System.Windows.Forms.Padding(0);
this.fctb.RightBracket = ')';
this.fctb.RightBracket2 = '}';
this.fctb.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
this.fctb.Size = new System.Drawing.Size(490, 311);
this.fctb.TabIndex = 3;
this.fctb.Text = "POP DX\r\nXOR DL,40H\r\nMOV AH,36H\r\nINT 21H\r\nCMP AX, 0FFFFH\r\nJE EXITSPC\r\nXOR DX,DX\r\n" +
"MUL CX\r\nXCHG BX,CX\r\nMUL CX\r\nPUSH AX\r\nPUSH DX";
this.fctb.Zoom = 100;
//
// AutoIndentCharsSample
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(490, 353);
this.Controls.Add(this.fctb);
this.Controls.Add(this.label1);
this.Name = "AutoIndentCharsSample";
this.Text = "AutoIndentChars Sample";
((System.ComponentModel.ISupportInitialize)(this.fctb)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private FastColoredTextBoxNS.FastColoredTextBox fctb;
}
}