From 33a7952745571576fb955fd33bc96e86f0e456fd Mon Sep 17 00:00:00 2001 From: jkobus Date: Wed, 14 Aug 2013 13:52:13 +0200 Subject: 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 Reviewed-by: Petar Perisin Reviewed-by: Jarek Kobus --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index b49ae92f48..1f8ec02163 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -33,6 +33,7 @@ #include "wizard/pythonclasswizard.h" #include "pythoneditorwidget.h" #include "pythoneditorfactory.h" +#include "tools/pythonhighlighterfactory.h" #include #include @@ -252,6 +253,7 @@ bool PythonEditorPlugin::initialize( //////////////////////////////////////////////////////////////////////////// addAutoReleasedObject(new FileWizard(Core::ICore::instance())); addAutoReleasedObject(new ClassWizard(Core::ICore::instance())); + addAutoReleasedObject(new Internal::PythonHighlighterFactory); return true; } -- cgit v1.2.1