public CodeView(EditorWindow owner, ITextView textView) { m_Owner = owner; _textView = textView; _document = _textView.Document; var textFont = _textView.Appearance.Text.font; _font = textFont ? textFont : GUI.skin.font; _navigator = new DefaultTextStructureNavigator(); _completion = new CodeViewCompletion(this, _textView); Caret.Moved += OnCaretMoved; _textView.Clicked = OnTextViewClicked; }
public CodeView(EditorWindow owner, ITextView textView) { m_Owner = owner; _textView = textView; _document = _textView.Document; var textFont = _textView.Appearance.Text.font; _font = textFont ? textFont : GUI.skin.font; _navigator = new DefaultTextStructureNavigator(); _completion = new CodeViewCompletion(this, _textView); Caret.Moved += OnCaretMoved; _textView.Clicked = OnTextViewClicked; }