[ui] ScriptEditor: Added syntax colorization for the script editor

Python syntax within the script editor is now highlighted making it easier to understand and write smaller code in it.
This commit is contained in:
waaake 2024-10-28 16:03:08 +05:30
parent 4464cdf799
commit 2e577274e6
3 changed files with 187 additions and 2 deletions

View file

@ -9,6 +9,8 @@ import Utils 1.0
import Qt.labs.platform 1.0 as Platform
import ScriptEditor 1.0
Item {
id: root
@ -339,6 +341,13 @@ Item {
}
}
}
// Syntax Highlights for the Input Area for Python Based Syntax
PySyntaxHighlighter {
id: syntaxHighlighter
// The document to highlight
textDocument: input.textDocument
}
}
}
}