aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljstools/qmljsindenter.h
blob: c7f62bd4ca4de6e14e6fa0ce1e81c06af40bff8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qmljstools_global.h"

#include <texteditor/textindenter.h>

namespace QmlJSEditor {

QMLJSTOOLS_EXPORT TextEditor::TextIndenter *createQmlJsIndenter(QTextDocument *doc);

QMLJSTOOLS_EXPORT void indentQmlJs(QTextDocument *doc, int startLine, int endLine,
                                   const TextEditor::TabSettings &tabSettings);

} // QmlJSEditor