summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/MarkdownTextArea.qml
blob: 966b209f3e85db0031d193d6df7372a89e9957ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQml
import QtQuick 6.7
import QtQuick.Controls 6.7 as QQC2
import org.kde.kirigami as Kirigami
import org.kde.syntaxhighlighting 1

QQC2.TextArea {
    id: root

    placeholderText: "Leave a comment"
    wrapMode: TextEdit.Wrap

    Kirigami.SpellCheck.enabled: true
    SyntaxHighlighter {
        id: hightlighter
        textEdit: root
        repository: Repository
        definition: Repository.definitionForFileName("la.md")
    }
}