Ejemplo n.º 1
0
 public void RemoveView(EditorViewAdapter view)
 {
     lock (this) {
     _views.Remove(view);
     _viewsCopy = null;
       }
 }
Ejemplo n.º 2
0
 public void AddView(EditorViewAdapter view)
 {
     lock (this) {
     _views.Add(view);
     _viewsCopy = null;
       }
 }
Ejemplo n.º 3
0
 public FastColoredTextBoxHighlighter(FastColoredTextBox textBox, LanguageData language) {
   TextBox = textBox;
   Adapter = new EditorAdapter(language);
   ViewAdapter = new EditorViewAdapter(Adapter, this);
   Language = language;
   InitStyles();
   InitBraces();
   Connect();
   UpdateViewRange();
   ViewAdapter.SetNewText(TextBox.Text);
 }
Ejemplo n.º 4
0
 public FastColoredTextBoxHighlighter(FastColoredTextBox textBox, LanguageData language)
 {
     TextBox     = textBox;
     Adapter     = new EditorAdapter(language);
     ViewAdapter = new EditorViewAdapter(Adapter, this);
     Language    = language;
     InitStyles();
     InitBraces();
     Connect();
     UpdateViewRange();
     ViewAdapter.SetNewText(TextBox.Text);
 }