PlainTextEditor::PlainTextEditor(QWidget *parent)
: BaseTextEditor(parent),
m_isMissingSyntaxDefinition(false),
- m_ignoreMissingSyntaxDefinition(false)
+ m_ignoreMissingSyntaxDefinition(false),
+ m_indenter(new NormalIndenter) // Currently only "normal" indentation is supported.
{
setRevisionsVisible(true);
setMarksVisible(true);
setFontSettings(TextEditorSettings::instance()->fontSettings());
- // @todo: Indentation specification through the definition files is not really being used
- // because Kate recommends to configure indentation through another feature. Maybe we should
- // provide something similar in Creator? For now, only normal indentation is supported.
- m_indenter.reset(new NormalIndenter);
-
emit configured(editableInterface());
}
bool m_isMissingSyntaxDefinition;
bool m_ignoreMissingSyntaxDefinition;
- Utils::CommentDefinition m_commentDefinition;
QScopedPointer<Indenter> m_indenter;
+ Utils::CommentDefinition m_commentDefinition;
};
} // namespace TextEditor