Exemplo n.º 1
0
		public CodeEditorView()
		{
			this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Help, OnHelpExecuted));
			
			UpdateCustomizedHighlighting();
			
			this.bracketRenderer = new BracketHighlightRenderer(this.TextArea.TextView);
			this.caretReferencesRenderer = new CaretReferencesRenderer(this);
			this.contextActionsRenderer = new ContextActionsRenderer(this);
			
			this.MouseHover += TextEditorMouseHover;
			this.MouseHoverStopped += TextEditorMouseHoverStopped;
			this.MouseLeave += TextEditorMouseLeave;
			this.TextArea.TextView.MouseDown += TextViewMouseDown;
			this.TextArea.Caret.PositionChanged += HighlightBrackets;
			
			SetupTabSnippetHandler();
		}
Exemplo n.º 2
0
        public CodeEditorView()
        {
            this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Help, OnHelpExecuted));

            this.bracketRenderer          = new BracketHighlightRenderer(this.TextArea.TextView);
            this.caretReferencesRenderer  = new CaretReferencesRenderer(this);
            this.contextActionsRenderer   = new ContextActionsRenderer(this);
            this.hiddenDefinitionRenderer = new HiddenDefinition.HiddenDefinitionRenderer(this);

            UpdateCustomizedHighlighting();

            this.MouseHover                           += TextEditorMouseHover;
            this.MouseHoverStopped                    += TextEditorMouseHoverStopped;
            this.MouseLeave                           += TextEditorMouseLeave;
            this.TextArea.TextView.MouseDown          += TextViewMouseDown;
            this.TextArea.Caret.PositionChanged       += HighlightBrackets;
            this.TextArea.TextView.VisualLinesChanged += CodeEditorView_VisualLinesChanged;

            SetupTabSnippetHandler();
        }