diff options
author | jkobus <jaroslaw.kobus@digia.com> | 2013-08-14 13:52:13 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@digia.com> | 2013-08-29 08:54:04 +0200 |
commit | 33a7952745571576fb955fd33bc96e86f0e456fd (patch) | |
tree | e9eae74813d85ce1bcb75fbe73d9d4916ce62531 /src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp | |
parent | a06da47d5b74f9d680b2201e218c1df87f023faa (diff) | |
download | qt-creator-33a7952745571576fb955fd33bc96e86f0e456fd.tar.gz |
Implement syntax highlighting in diff editor
All Qt Creator's main highlighters are used in the first place,
for other mimetypes generic highlighter is used as a fallback.
Task-number: QTCREATORBUG-9580
Change-Id: I863b9085520e5bdda142ce88f2074afeacee0531
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp index 5b96bb7eaf..3f06dab0ab 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectplugin.cpp @@ -36,6 +36,7 @@ #include "cmakeprojectconstants.h" #include "cmakelocatorfilter.h" #include "cmakefilecompletionassist.h" +#include "cmakehighlighterfactory.h" #include <coreplugin/featureprovider.h> #include <coreplugin/icore.h> @@ -82,6 +83,7 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString * addAutoReleasedObject(new CMakeLocatorFilter); addAutoReleasedObject(new CMakeFileCompletionAssistProvider(cmp)); addAutoReleasedObject(new CMakeFeatureProvider); + addAutoReleasedObject(new CMakeHighlighterFactory); return true; } |