forked from qt-creator/qt-creator
TextEditor: add json indenter
Use an EditorFactory that sets up a custom indenter for json files. Change-Id: Id5ade9f9f551835131a62e381a972f0b6032e7c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "fontsettings.h"
|
||||
#include "highlighter.h"
|
||||
#include "icodestylepreferences.h"
|
||||
#include "jsoneditor.h"
|
||||
#include "linenumberfilter.h"
|
||||
#include "markdowneditor.h"
|
||||
#include "outlinefactory.h"
|
||||
@@ -76,6 +77,7 @@ public:
|
||||
|
||||
PlainTextEditorFactory plainTextEditorFactory;
|
||||
MarkdownEditorFactory markdownEditorFactory;
|
||||
JsonEditorFactory jsonEditorFactory;
|
||||
};
|
||||
|
||||
static TextEditorPlugin *m_instance = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user