#include "cpphighlighter.h"
#include "cppeditor.h"
#include "cppqtstyleindenter.h"
+#include "cppautocompleter.h"
#include <texteditor/texteditorsettings.h>
#include <texteditor/fontsettings.h>
fs.toTextCharFormats(CPPEditor::highlighterFormatCategories());
highlighter->setFormats(formats.constBegin(), formats.constEnd());
editor->installSyntaxHighlighter(highlighter);
-
editor->setIndenter(new CppQtStyleIndenter);
+ editor->setAutoCompleter(new CppAutoCompleter);
}
#include "qmljshighlighter.h"
#include "qmljseditor.h"
#include "qmljsindenter.h"
+#include "qmljsautocompleter.h"
#include <texteditor/texteditorsettings.h>
#include <texteditor/fontsettings.h>
const TextEditor::FontSettings &fs = TextEditor::TextEditorSettings::instance()->fontSettings();
highlighter->setFormats(fs.toTextCharFormats(QmlJSTextEditor::highlighterFormatCategories()));
editor->installSyntaxHighlighter(highlighter);
-
editor->setIndenter(new Indenter);
+ editor->setAutoCompleter(new AutoCompleter);
}