Example #1
0
        void syn_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Left:
            case Keys.Right:
            case Keys.Down:
            case Keys.Up:
                break;

            case Keys.Tab:
                SyntaxBoxControl syn = tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl;
                if (syn != null && syn.InfoTipVisible)
                {
                    List <string> args = new List <string>();
                    foreach (IntellisenseArgument a in grpOverloads.Overloads[syn.InfoTipSelectedIndex - 1].Arguments)
                    {
                        args.Add(a.Argument);
                    }

                    syn.Document.InsertText(String.Join(", ", args.ToArray()), syn.Caret.Position.X, syn.Caret.Position.Y);
                    e.Handled = true;
                }
                break;

            default:
                tmrInterval.Stop();
                tmrInterval.Start();
                break;
            }
        }
        public SettingsForm(SyntaxBoxControl sb)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            this.sb = sb;

            SyntaxDefinition l = sb.Document.Parser.SyntaxDefinition;

            TextStyle[] tss = l.Styles;


            lbStyles.Items.Clear();
            for (int i = 0; i < tss.Length; i++)
            {
                TextStyle ts = tss[i];
                var       s  = new Style {
                    TextStyle = ts, Name = ts.Name
                };
                //s.Name=ts.Name;
                lbStyles.Items.Add(s);
            }
            lbStyles.SelectedIndex = 0;
        }
Example #3
0
        private void treeProject_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            switch (e.Node.ImageKey)
            {
            case "script":
            case "page":
            case "text":
                TabPage blank = FindTabByTag(e.Node.FullPath, true);

                string path = project.PathFromNode(e.Node);
                string data = (File.Exists(path)) ? File.ReadAllText(path) : "";

                if (blank != null)
                {
                    // not found, is there a blank new one?
                    SyntaxBoxControl syn = blank.Controls[0] as SyntaxBoxControl;

                    if (syn != null)
                    {
                        blank.Text        = e.Node.Text;
                        blank.Tag         = e.Node.FullPath;
                        syn.Document.Text = data;
                    }
                }
                else                         // new tab
                {
                    AddTabLUA(e.Node.Text, e.Node.FullPath, data);
                }
                break;

            case "sound":
            case "music":
                // system default
                try
                {
                    System.Diagnostics.Process.Start(project.PathFromNode(e.Node));
                }
                catch (Exception ex) {
                    // no default handler
                }
                break;

            case "image":
                // internal image viewer?
                if (FindTabByTag(e.Node.FullPath, false) == null)
                {
                    AddTabImage(e.Node.Text, e.Node.FullPath, project.PathFromNode(e.Node));
                }
                break;

            case "package":
            case "config":
                mnupopProperties_Click(null, null);
                break;

            default:
                break;
            }
            UpdateButtons();
        }
Example #4
0
        /// <summary>
        /// Default constructor for the SyntaxBoxControl
        /// </summary>
        public EditViewControl(SyntaxBoxControl Parent)
        {
            _SyntaxBox = Parent;

            Painter = new NativePainter(this);
            _Selection = new Selection(this);
            _Caret = new Caret(this);

            _Caret.Change += CaretChanged;
            _Selection.Change += SelectionChanged;

            InitializeComponent();

            CreateAutoList();
            //CreateFindForm ();
            CreateInfoTip();

            SetStyle(ControlStyles.AllPaintingInWmPaint, false);
            SetStyle(ControlStyles.DoubleBuffer, false);
            SetStyle(ControlStyles.Selectable, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.Opaque, true);
            SetStyle(ControlStyles.UserPaint, true);
            UpdateStyles();

            //			this.IMEWindow = new Keyrox.Globalization.IMEWindow (this.Handle,_SyntaxBox.FontName,_SyntaxBox.FontSize);
        }
Example #5
0
 private void FormDispose()
 {
     if (_Editor != null)
     {
         _Editor.CaretChange -= new EventHandler(Editor_CaretChange);
     }
     _Editor = null;
 }
Example #6
0
        void tmrInterval_Tick(object sender, EventArgs e)
        {
            tmrInterval.Stop();

            SyntaxBoxControl syn = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl);

            if (syn == null)
            {
                return;
            }

            syn.AutoListVisible = false;

            bool matches = false;

            syn.AutoListClear();

            Word w = syn.Document.GetWordFromPos(syn.Caret.Position);

            if (w == null)
            {
                return;
            }

            string txt = w.Text, word = "";

            if (!String.IsNullOrEmpty(txt) && txt.Length > 2)
            {
                syn.AutoListBeginLoad();

                word = txt.Substring(0, 3);
                PatternCollection pc = (syntaxDefinition.SpanDefinitions[0].LookupTable[word] as PatternCollection);
                if (pc == null)
                {
                    syn.AutoListEndLoad();
                    return;
                }
                foreach (Pattern p in pc)
                {
                    if (p.StringPattern.Length >= txt.Length && p.StringPattern.Substring(0, txt.Length) == txt)
                    {
                        syn.AutoListAdd(p.StringPattern, 0);
                        matches = true;
                    }
                }

                syn.AutoListEndLoad();
                if (matches)
                {
                    syn.AutoListVisible = true;
                    syn.InfoTipVisible  = false;
                }
            }
            else if (txt.Trim() == "")
            {
                syn.InfoTipVisible = false;
            }
        }
Example #7
0
 private void clearAllBookmarksToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (TabPage p in tabDocs.TabPages)
     {
         SyntaxBoxControl s = p.Controls[0] as SyntaxBoxControl;
         if (s != null)
         {
             s.Document.ClearBookmarks();
         }
     }
 }
Example #8
0
 private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dlgOptions.ShowDialog(this) != DialogResult.Cancel)
     {
         LoadSettings();
         foreach (TabPage t in tabDocs.TabPages)
         {
             SyntaxBoxControl syn = t.Controls[0] as SyntaxBoxControl;
             if (syn != null)
             {
                 SetUpSyntaxBox(syn);
             }
         }
     }
 }
Example #9
0
        public override void OnSetComponentDefaults()
        {
            base.OnSetComponentDefaults();
            if (DesignerHost != null)
            {
                DesignerTransaction trans = DesignerHost.CreateTransaction(
                    "Adding Syntaxdocument");
                SyntaxDocument sd = DesignerHost.CreateComponent
                                        (typeof(SyntaxDocument)) as
                                    SyntaxDocument;

                SyntaxBoxControl sb = this.Control as SyntaxBoxControl;
                sb.Document = sd;
                trans.Commit();
            }
        }
Example #10
0
        private void btnBookmarkPrevious_Click(object sender, EventArgs e)
        {
            SyntaxBoxControl syn = synCode;

            if (syn != null)
            {
                int curr   = syn.Caret.CurrentRow.Index;
                int nextln = syn.Document.GetPreviousBookmark(curr);

                if (nextln < curr)
                {
                    // next in page...
                    syn.GotoPreviousBookmark();
                }
                else
                {
                    int tab = tabDocs.SelectedIndex;

                    // previous tab???
                    for (int i = tab - 1; i >= 0; i--)
                    {
                        syn    = tabDocs.TabPages[i].Controls[0] as SyntaxBoxControl;
                        nextln = syn.Document.GetPreviousBookmark(0);
                        if (nextln > -1)
                        {
                            tabDocs.SelectedIndex = i;
                            syn.GotoLine(nextln);
                            return;
                        }
                    }

                    // finish wrap
                    for (int i = tabDocs.TabPages.Count - 1; i >= tab; i--)
                    {
                        syn    = tabDocs.TabPages[i].Controls[0] as SyntaxBoxControl;
                        nextln = syn.Document.GetPreviousBookmark(0);
                        if (nextln > -1)
                        {
                            tabDocs.SelectedIndex = i;
                            syn.GotoLine(nextln);
                            return;
                        }
                    }
                }
            }
        }
Example #11
0
 private void SaveAll()
 {
     foreach (TabPage p in tabDocs.TabPages)
     {
         SyntaxBoxControl syn = p.Controls[0] as SyntaxBoxControl;
         if (syn != null)
         {
             if (syn.Document.Modified)
             {
                 string path = project.PathFromTag(p.Tag);
                 File.WriteAllText(path, (p.Controls[0] as SyntaxBoxControl).Document.Text);
                 syn.Document.Modified = false;
             }
         }
     }
     UpdateButtons();
 }
Example #12
0
        public SettingsForm(SyntaxBoxControl sb)
        {
            InitializeComponent();

            _sb = sb;

            TextStyle[] tss = sb.Document.Parser.SyntaxDefinition.Styles;

            lbStyles.Items.Clear();
            for (int i = 0; i < tss.Length; i++)
            {
                TextStyle ts = tss[i];
                var       s  = new Style {
                    TextStyle = ts, Name = ts.Name ?? "Style " + i
                };
                lbStyles.Items.Add(s);
            }
            lbStyles.SelectedIndex = 0;
        }
Example #13
0
        private void AddTabLUA(string tabname, string tag, string content)
        {
            TabPage          tab = new TabPage(tabname);
            SyntaxBoxControl con = new SyntaxBoxControl();

            con.Dock = DockStyle.Fill;
            SetUpSyntaxBox(con);

            tab.Tag           = tag;
            con.Document.Text = content;

            tab.Controls.Add(con);
            tabDocs.TabPages.Add(tab);

            tabDocs.SelectedIndex = tabDocs.TabPages.Count - 1;
            synCode = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl);

            UpdateButtons();
        }
Example #14
0
        private bool CloseTab(int idx)
        {
            SyntaxBoxControl syn = tabDocs.TabPages[idx].Controls[0] as SyntaxBoxControl;

            if (syn != null)
            {
                if (syn.Document.Modified)
                {
                    DialogResult r = MessageBox.Show("You have unsaved changes in \"" + tabDocs.TabPages[idx].Text.Trim() + "\". Save now?", "Unsaved Changes", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
                    if (r == DialogResult.Cancel)
                    {
                        return(false);
                    }
                    if (r == DialogResult.Yes)
                    {
                        string path = project.PathFromTag(tabDocs.TabPages[idx].Tag);
                        File.WriteAllText(path, syn.Document.Text);
                    }
                }
            }
            return(true);
        }
Example #15
0
        void syn_InfoTipSelectedIndexChanged(object sender, EventArgs e)
        {
            tmrInterval.Stop();
            SyntaxBoxControl syn = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl);

            grpOverloads.Index = syn.InfoTipSelectedIndex;
            if (grpOverloads.Index > grpOverloads.Overloads.Count)
            {
                return;                 // invalid index
            }
            //syn.InfoTipCount = grpOverloads.Overloads.Count;
            List <string> args = new List <string>();
            List <string> desc = new List <string>();

            foreach (IntellisenseArgument a in grpOverloads.Overloads[grpOverloads.Index - 1].Arguments)
            {
                args.Add(a.Argument);
                desc.Add(String.Format("<b>{0}</b>: {1}", a.Argument, a.Description));
            }
            syn.InfoTipPosition = new TextPoint(syn.Caret.Position.X, syn.Caret.Position.Y + 1);
            syn.InfoTipText     = String.Format("<b>{0}(<i>{1}</i>)</b><hr /><br />{2}", grpOverloads.Method, String.Join(", ", args.ToArray()), String.Join("<br />", desc.ToArray()));
            //syn.InfoTipVisible = true;
        }
Example #16
0
        void InfoTipText(string method)
        {
            XmlDocument doc = new XmlDocument();

            doc.Load((new FileInfo(Application.ExecutablePath)).DirectoryName + "\\Intellisense.xml");
            XmlNode node = doc.SelectSingleNode("signatures/signature[@name='" + method + "']");

            if (node != null)
            {
                grpOverloads           = new IntellisenseGroup();
                grpOverloads.Overloads = new List <IntellisenseOverload>();

                // hide autolist, display infobox!
                SyntaxBoxControl syn = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl);
                syn.AutoListVisible = false;

                syn.Document.InsertText("()", syn.Caret.Position.X, syn.Caret.Position.Y);
                syn.Caret.MoveRight(false);

                XmlNodeList nl = node.SelectNodes("overload");
                foreach (XmlNode n in nl)
                {
                    List <IntellisenseArgument> args = new List <IntellisenseArgument>();
                    foreach (XmlNode x in n.SelectNodes("arg"))
                    {
                        args.Add(new IntellisenseArgument(x.Attributes["name"].Value.ToString(), x.InnerText));
                    }
                    grpOverloads.Overloads.Add(new IntellisenseOverload(node["returns"].Value, args));
                }
                grpOverloads.Method = method;
                syn.InfoTipCount    = grpOverloads.Overloads.Count;
                syn.InfoTipVisible  = true;
                tmrInterval.Stop();
                syn.AutoListVisible = false;
                //MessageBox.Show(node.InnerXml);
            }
        }
Example #17
0
        private void SetUpSyntaxBox(SyntaxBoxControl syn)
        {
            syn.Document.Parser.Init(syntaxDefinition);

            syn.ShowLineNumbers  = syn.ShowGutterMargin = true;
            syn.ReadOnly         = false;
            syn.ParseOnPaste     = true;
            syn.Indent           = Alsing.Windows.Forms.SyntaxBox.IndentStyle.LastRow;   // Alsing.Windows.Forms.SyntaxBox.IndentStyle.Smart;
            syn.ShowTabGuides    = true;
            syn.Document.Folding = true;

            syn.AutoListIcons = ilTreeIcons;

            syn.Document.BreakPointAdded += new RowEventHandler(Document_BreakPointAdded);
            syn.KeyDown                     += new KeyEventHandler(syn_KeyDown);
            syn.SelectionChange             += new EventHandler(syn_SelectionChange);
            syn.LostFocus                   += new EventHandler(syn_LostFocus);
            syn.OnAutoListTextInserted      += new Alsing.Windows.Forms.SyntaxBox.EditViewControl.AutolistTextInsertedDelegate(InfoTipText);
            syn.InfoTipSelectedIndexChanged += new EventHandler(syn_InfoTipSelectedIndexChanged);
            Font f = Properties.Settings.Default.Style_Font;

            syn.FontName = f.FontFamily.Name;
            syn.FontSize = f.Size;
        }
 public SyntaxBoxConfigurator(SyntaxBoxControl syntaxBoxControl)
 {
     this.syntaxBoxControl = syntaxBoxControl;
 }
Example #19
0
 public MyEditViewControl(SyntaxBoxControl parent)
     : base(parent)
 {
 }
Example #20
0
        /// <summary>
        /// Default constructor for the SyntaxBoxControl
        /// </summary>
        public EditViewControl(SyntaxBoxControl Parent)
        {
            _SyntaxBox = Parent;

            Painter = new NativePainter(this);
            _Selection = new Selection(this);
            _Caret = new Caret(this);

            _Caret.Change += CaretChanged;
            _Selection.Change += SelectionChanged;


            InitializeComponent();


            CreateAutoList();
            //CreateFindForm ();
            CreateInfoTip();

            SetStyle(ControlStyles.AllPaintingInWmPaint, false);
            SetStyle(ControlStyles.DoubleBuffer, false);
            SetStyle(ControlStyles.Selectable, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.Opaque, true);
            SetStyle(ControlStyles.UserPaint, true);
            UpdateStyles();

            mKeysThatInsertFromAutolist.Add(Keys.Space);
            mKeysThatInsertFromAutolist.Add(Keys.Enter);
            mKeysThatInsertFromAutolist.Add(Keys.Tab);
            mKeysThatInsertFromAutolist.Add(Keys.OemPeriod);
            mKeysThatInsertFromAutolist.Add(Keys.OemOpenBrackets);
            //mKeysThatInsertFromAutolist.Add(


            //			this.IMEWindow = new Alsing.Globalization.IMEWindow (this.Handle,_SyntaxBox.FontName,_SyntaxBox.FontSize);
        }
Example #21
0
        public ScriptEditorPopupForm(SyntaxBoxControl editor, ScriptIntellisense intellisense)
        {
            InitializeComponent();

            _Editor       = editor;
            _Intellisense = intellisense;

            if (_Intellisense.Help != null && (_Intellisense.Help.SupportsHelp || _Intellisense.Help.SupportsOnlineHelp))
            {
                if (_Intellisense.Help.SupportsHelp && _Intellisense.Help.SupportsOnlineHelp)
                {
                    lblComments.Text = "Press<b>F1</b> for more help, <b>F2</b> for online help";
                }
                else if (_Intellisense.Help.SupportsHelp)
                {
                    lblComments.Text = "Press<b>F1</b> for more help";
                }
                else if (_Intellisense.Help.SupportsOnlineHelp)
                {
                    lblComments.Text = "Press <b>F2</b> for online help";
                }
            }
            else
            {
                lblComments.Visible = false;
            }


            _StartSearchPosition = new TextPoint()
            {
                X = _Editor.Caret.Position.X,
                Y = _Editor.Caret.Position.Y
            };

            _StartSearchPosition.X = FindStartSymbol(_Editor.Caret.CurrentRow.Text, Math.Max(_StartSearchPosition.X - 1, 0),
                                                     intellisense.UsePeriodInIntellisense, out _LastPartStart);

            _Intellisense.Items.Sort((x, y) =>
            {
                if (x.DisplayOrder != y.DisplayOrder)
                {
                    return(x.DisplayOrder.CompareTo(y.DisplayOrder));
                }
                if (x.IsMandatory.CompareTo(y.IsMandatory) != 0)
                {
                    return(-x.IsMandatory.CompareTo(y.IsMandatory));
                }
                if (x.Position.HasValue && !y.Position.HasValue)
                {
                    return(-1);
                }
                if (!x.Position.HasValue && y.Position.HasValue)
                {
                    return(1);
                }
                if (x.Position.HasValue && y.Position.HasValue && x.Position.Value.CompareTo(y.Position.Value) != 0)
                {
                    return(x.Position.Value.CompareTo(y.Position.Value));
                }
                return(StringLogicalComparer.Compare(x.Caption, y.Caption));
            });
            Grid.DataSource = _Intellisense.Items;

            lblDescription.DataBindings.Add(nameof(lblDescription.Text), _Intellisense.Items, nameof(ScriptIntellisenseItem.Description));

            _Editor.CaretChange += new EventHandler(Editor_CaretChange);
        }
Example #22
0
        void syn_LostFocus(object sender, EventArgs e)
        {
            SyntaxBoxControl syn = (sender as SyntaxBoxControl);

            syn.AutoListVisible = false;
        }
Example #23
0
    public TextEditor(string filename)
    {
        BackColor = Color.FromArgb(255, 34, 40, 42);

        //find the syntax definition
        p_SyntaxDefinition = null;
        string syntaxName = new FileInfo(filename).Extension.Replace(".", "").ToLower();

        for (int c = 0; c < p_SyntaxNames.Length; c++)
        {
            if (p_SyntaxNames[c] == syntaxName)
            {
                p_SyntaxDefinition = p_SyntaxDefinitions[c];
                break;
            }
        }

        //default to a unknown syntax definition if the file extension
        //isn't known.
        if (p_SyntaxDefinition == null)
        {
            for (int c = 0; c < p_SyntaxNames.Length; c++)
            {
                if (p_SyntaxNames[c] == "unknown")
                {
                    p_SyntaxDefinition = p_SyntaxDefinitions[c];
                    break;
                }
            }
        }

        //create the syntaxbox control
        p_Base = new SyntaxBoxControl()
        {
            Dock               = DockStyle.Fill,
            BackColor          = BackColor,
            BracketBackColor   = Color.Transparent,
            BracketForeColor   = Color.White,
            BracketBorderColor = Color.FromArgb(255, 60, 70, 70),

            ShowLineNumbers  = false,
            ShowGutterMargin = false,

            SplitView = false,

            FontName = "Consolas",
            FontSize = 10
        };
        p_Base.Document = new SyntaxDocument();
        p_Base.Document.Parser.Init(p_SyntaxDefinition);
        p_Base.Document.Text = File.ReadAllText(filename);

        p_Base.Document.Change += delegate(object sender, EventArgs e) {
            if (Modified == null)
            {
                return;
            }
            Modified(this, e);
        };

        //create the right click menu
        ContextMenuStrip rightClickMenu = new ContextMenuStrip();

        rightClickMenu.Opening += delegate(object sender, System.ComponentModel.CancelEventArgs e) {
            presentRightClickMenu(rightClickMenu);
        };
        ContextMenuStrip = rightClickMenu;

        //add the control
        Controls.Add(p_Base);
    }
Example #24
0
 public void Initialize(SyntaxBoxControl control)
 {
     this.syntaxBoxControl1 = control;
 }
Example #25
0
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditForm));
     this.statusBar1      = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
     this.sDoc            = new Alsing.SourceCode.SyntaxDocument(this.components);
     this.tbrSettings     = new System.Windows.Forms.ToolBar();
     this.btnWhitespace   = new System.Windows.Forms.ToolBarButton();
     this.btnTabGuides    = new System.Windows.Forms.ToolBarButton();
     this.btnFolding      = new System.Windows.Forms.ToolBarButton();
     this.btnSettings     = new System.Windows.Forms.ToolBarButton();
     this.imlIcons        = new System.Windows.Forms.ImageList(this.components);
     this.sBox            = new Alsing.Windows.Forms.SyntaxBoxControl();
     this.syntaxDocument1 = new Alsing.SourceCode.SyntaxDocument(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
     this.SuspendLayout();
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 471);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1,
         this.statusBarPanel2,
         this.statusBarPanel3
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(504, 22);
     this.statusBar1.TabIndex   = 1;
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Name  = "statusBarPanel1";
     this.statusBarPanel1.Width = 200;
     //
     // statusBarPanel2
     //
     this.statusBarPanel2.Name  = "statusBarPanel2";
     this.statusBarPanel2.Width = 200;
     //
     // statusBarPanel3
     //
     this.statusBarPanel3.Name = "statusBarPanel3";
     //
     // sDoc
     //
     this.sDoc.Lines = new string[] {
         "abc"
     };
     this.sDoc.MaxUndoBufferSize = 1000;
     this.sDoc.Modified          = false;
     this.sDoc.UndoStep          = 0;
     this.sDoc.Change           += new System.EventHandler(this.sDoc_Change);
     this.sDoc.ModifiedChanged  += new System.EventHandler(this.sDoc_ModifiedChanged);
     //
     // tbrSettings
     //
     this.tbrSettings.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.tbrSettings.AutoSize   = false;
     this.tbrSettings.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.btnWhitespace,
         this.btnTabGuides,
         this.btnFolding,
         this.btnSettings
     });
     this.tbrSettings.Divider        = false;
     this.tbrSettings.Dock           = System.Windows.Forms.DockStyle.Left;
     this.tbrSettings.DropDownArrows = true;
     this.tbrSettings.ImageList      = this.imlIcons;
     this.tbrSettings.Location       = new System.Drawing.Point(0, 0);
     this.tbrSettings.Name           = "tbrSettings";
     this.tbrSettings.ShowToolTips   = true;
     this.tbrSettings.Size           = new System.Drawing.Size(25, 471);
     this.tbrSettings.TabIndex       = 2;
     this.tbrSettings.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbrSettings_ButtonClick);
     //
     // btnWhitespace
     //
     this.btnWhitespace.ImageIndex  = 1;
     this.btnWhitespace.Name        = "btnWhitespace";
     this.btnWhitespace.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnWhitespace.ToolTipText = "Toggle Whitespace On/Off";
     //
     // btnTabGuides
     //
     this.btnTabGuides.ImageIndex  = 0;
     this.btnTabGuides.Name        = "btnTabGuides";
     this.btnTabGuides.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnTabGuides.ToolTipText = "Toggle Tab guides On/Off";
     //
     // btnFolding
     //
     this.btnFolding.ImageIndex  = 2;
     this.btnFolding.Name        = "btnFolding";
     this.btnFolding.Pushed      = true;
     this.btnFolding.Style       = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
     this.btnFolding.ToolTipText = "Toggle Folding On/Off";
     //
     // btnSettings
     //
     this.btnSettings.Name = "btnSettings";
     this.btnSettings.Text = "S";
     //
     // imlIcons
     //
     this.imlIcons.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlIcons.ImageStream")));
     this.imlIcons.TransparentColor = System.Drawing.Color.Transparent;
     this.imlIcons.Images.SetKeyName(0, "");
     this.imlIcons.Images.SetKeyName(1, "");
     this.imlIcons.Images.SetKeyName(2, "");
     //
     // sBox
     //
     this.sBox.ActiveView           = Alsing.Windows.Forms.ActiveView.BottomRight;
     this.sBox.AutoListPosition     = null;
     this.sBox.AutoListSelectedText = "a123";
     this.sBox.AutoListVisible      = false;
     this.sBox.BackColor            = System.Drawing.Color.White;
     this.sBox.BorderStyle          = Alsing.Windows.Forms.BorderStyle.None;
     this.sBox.ChildBorderColor     = System.Drawing.Color.White;
     this.sBox.ChildBorderStyle     = Alsing.Windows.Forms.BorderStyle.None;
     this.sBox.CopyAsRTF            = false;
     this.sBox.Dock                 = System.Windows.Forms.DockStyle.Fill;
     this.sBox.Document             = this.sDoc;
     this.sBox.FontName             = "Courier new";
     this.sBox.ImeMode              = System.Windows.Forms.ImeMode.NoControl;
     this.sBox.InfoTipCount         = 1;
     this.sBox.InfoTipPosition      = null;
     this.sBox.InfoTipSelectedIndex = 1;
     this.sBox.InfoTipVisible       = false;
     this.sBox.Location             = new System.Drawing.Point(25, 0);
     this.sBox.LockCursorUpdate     = false;
     this.sBox.Name                 = "sBox";
     this.sBox.ScopeIndicatorColor  = System.Drawing.Color.Black;
     this.sBox.ShowScopeIndicator   = false;
     this.sBox.Size                 = new System.Drawing.Size(479, 471);
     this.sBox.SmoothScroll         = false;
     this.sBox.SplitviewH           = -4;
     this.sBox.SplitviewV           = -4;
     this.sBox.TabGuideColor        = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(219)))), ((int)(((byte)(214)))));
     this.sBox.TabIndex             = 3;
     this.sBox.Text                 = "syntaxBoxControl1";
     this.sBox.WhitespaceColor      = System.Drawing.SystemColors.ControlDark;
     //
     // syntaxDocument1
     //
     this.syntaxDocument1.Lines = new string[] {
         ""
     };
     this.syntaxDocument1.MaxUndoBufferSize = 1000;
     this.syntaxDocument1.Modified          = false;
     this.syntaxDocument1.UndoStep          = 0;
     //
     // EditForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(504, 493);
     this.Controls.Add(this.sBox);
     this.Controls.Add(this.tbrSettings);
     this.Controls.Add(this.statusBar1);
     this.Icon     = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name     = "EditForm";
     this.Text     = "EditForm";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.EditForm_Closing);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
     this.ResumeLayout(false);
 }