selection bgcolor in editor
Solved
General and Desktop
-
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:
m_editor->lexer()->setPaper(color);
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
-
Hi,
QScintilla is not part of Qt, you should query the authors directly.
-
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