All,
I'm using QScintilla to syntax-highlight my domain specific language (DSL).
Since my DSL is based on python, I use the existing Python Lexer for QScintilla. I manage to create new keywords as following:
self.text = Qscintilla(self)
pythonLexer = QsciLexerPython(self.text)
self.text.setLexer(pythonLexer)
self.text.SendScintilla(QsciScintilla.SCI_SETKEYWORDS,1,bytes('WARNING', 'utf-8'))
Now, how do I choose a color to highlight my newly created keywords?
Thanks a lot!