summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/MarkdownTextArea.qml
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/qml/MarkdownTextArea.qml')
-rw-r--r--kodereviewer/qml/MarkdownTextArea.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/kodereviewer/qml/MarkdownTextArea.qml b/kodereviewer/qml/MarkdownTextArea.qml
new file mode 100644
index 0000000..966b209
--- /dev/null
+++ b/kodereviewer/qml/MarkdownTextArea.qml
@@ -0,0 +1,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")
+ }
+}