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:
David Schulz
2023-08-23 15:38:01 +02:00
parent 28742774fe
commit ddb4aa0151
5 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "texteditor.h"
namespace TextEditor::Internal {
class JsonEditorFactory final : public TextEditorFactory
{
public:
JsonEditorFactory();
};
} // TextEditor::Internal