public new void EndInit() { base.EndInit(); Styles[ScintillaNET.StylesCommon.BraceBad].ForeColor = System.Drawing.Color.Red; Styles[ScintillaNET.StylesCommon.BraceLight].ForeColor = System.Drawing.Color.Magenta; Styles[21].ForeColor = System.Drawing.Color.DarkMagenta; Styles[22].ForeColor = System.Drawing.Color.DarkMagenta; AutoComplete.AutoHide = false; Lexing.Colorize(); }
public void InitForXML() { ConfigurationManager.Language = "xml"; MatchBraces = true; IsBraceMatching = true; Lexing.Lexer = Lexer.Xml; Folding.IsEnabled = true; Lexing.SetProperty("fold", "1"); Lexing.SetProperty("fold.html", "1"); Margins[0].Width = 60; Margins[1].Width = 16; Margins[2].Width = 40; UndoRedo.EmptyUndoBuffer(); Modified = false; }
public void InitForText() { ConfigurationManager.Language = "text"; Indentation.ShowGuides = false; MatchBraces = false; IsBraceMatching = false; Lexing.Lexer = Lexer.Automatic; Folding.IsEnabled = false; Lexing.SetProperty("fold", "0"); Lexing.SetProperty("fold.html", "0"); Margins[0].Width = 40; Margins[1].Width = 16; Margins[2].Width = 40; UndoRedo.EmptyUndoBuffer(); Modified = false; }
public SourceRange(ISourceFile source, Lexing.Token token) { _source = source; _startIndex = token.StartIndex; _length = token.Length; }