public ITextView CreateTextView(ITextBuffer textBuffer)
        {
            MonoDevelop.Ide.Editor.ITextDocument textDocument = textBuffer.GetTextEditor();
            TextEditor textEditor = textDocument as TextEditor;

            return(CreateTextView(textEditor));
        }
 internal TagBasedSyntaxHighlighting(ITextView textView, string defaultScope)
 {
     this.textView     = textView;
     this.textDocument = textView.GetTextEditor();
     if (defaultScope != null)
     {
         classificationMap = GetClassificationMap(defaultScope);
     }
 }
示例#3
0
 internal TagBasedSyntaxHighlighting(ITextView textView, string defaultScope)
 {
     this.textView     = textView;
     this.textDocument = textView.GetTextEditor();
     if (defaultScope != null)
     {
         classificationMap = GetClassificationMap(defaultScope);
     }
     this.userScope = this.defaultScopeStack.Push(EditorThemeColors.UserTypes);
 }
 internal TagBasedSyntaxHighlighting(ITextView textView, string defaultScope)
 {
     this.textView     = textView;
     this.textDocument = textView.GetTextEditor();
     if (defaultScope != null)
     {
         classificationMap = GetClassificationMap(defaultScope);
     }
     else
     {
         defaultScopeStack = new ScopeStack(EditorThemeColors.Foreground);
     }
 }
 internal TagBasedSyntaxHighlighting(ITextView textView)
 {
     this.textBuffer   = textView.TextBuffer;
     this.textDocument = textView.GetTextEditor();
 }