1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Windows.Media;
6
using ICSharpCode.AvalonEdit;
7
using ICSharpCode.Core.WinForms;
8
using ICSharpCode.SharpDevelop.Editor;
10
namespace ICSharpCode.Scripting
12
public static class TextEditorFactory
14
public static TextEditor CreateTextEditor()
17
EditorControlService.CreateEditor(out control);
18
var textEditor = (TextEditor)control;
20
textEditor.Options = new TextEditorOptions();
21
textEditor.Options.AllowScrollBelowDocument = false;
22
textEditor.FontFamily = new FontFamily(WinFormsResourceService.DefaultMonospacedFont.Name);
23
textEditor.FontSize = 13.0;