summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/MarkdownTextArea.qml
blob: 9debc1aa7ef928695bd90f258486a4dd2ea7a0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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: false

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