selection bgcolor in editor
i have an editor (a qsciscintilla subclass) and it has lexer set on it.
i want to set background color to the selection text in editor. i've tried:
but this sets the whole editor background to color. but what i need is to set background only to the selection. i didn't have an api to do this. please help
QScintilla is not part of Qt, you should query the authors directly.
huse last edited by
m_editor->setSelectionBackgroundColor (const QColor &col) ?
that just colors the selection at the moment, i need something like text highlighting
So you want to customise the syntax highlighting itself ? So QsciLexer::setColor looks like what you want.
not the text color, but the background of the text