Warning, /frameworks/syntax-highlighting/examples/minimal-qml/example.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2018 Eike Hein <hein@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 import QtQuick
0008 import QtQuick.Controls as QQC2
0009 import org.kde.syntaxhighlighting
0010 
0011 QQC2.ScrollView {
0012     width: 250
0013     height: 250
0014 
0015     QQC2.TextArea {
0016         id: myText
0017 
0018         text: "int foo = 0;"
0019         wrapMode: TextEdit.Wrap
0020         focus: true
0021 
0022         Kirigami.SpellCheck.enabled: false
0023 
0024         SyntaxHighlighter {
0025             textEdit: myText
0026             definition: "C++"
0027         }
0028     }
0029 }