private void TextEditor_Initialized(TextEditor lineEditor, EventArgs e)
        {
            PromptAdorner.AddTo(lineEditor);
            lineEditor.TextArea.MouseWheel += TextArea_MouseWheel;

            var lineNumber = lineEditor.ViewModel().Id;

            lineEditor.TextArea.TextView.LineTransformers.Add(
                new AvalonSyntaxHighlightTransformer(services, lineNumber)
                );
        }
Example #2
0
        private void TextEditor_Initialized(TextEditor lineEditor, EventArgs e)
        {
            PromptAdorner.AddTo(lineEditor);
            lineEditor.TextArea.MouseWheel += TextArea_MouseWheel;

            var line = lineEditor.ViewModel();

            line.SetEditor(lineEditor);
            line.TriggerIntellisense = (completions, onClosed) =>
                                       new IntellisenseWindow(lineEditor.TextArea, completions, onClosed);
            lineEditor.TextArea.TextView.LineTransformers.Add(
                new AvalonSyntaxHighlightTransformer(replServices, line.Id)
                );
        }