// and the keywords function :
const char *QsciLexerCO :: keywords(int set) const
{
switch (set)
{
case BaseType:
return
"bool char double enum float int long "
"short struct union void wchar_t";
case ClassRelated:
return
"class inline friend private protected public "
"template this virtual";
case Misc:
return
"asm namespace typedef using";
case Modifiers:
"auto const explicit extern mutable register "
"signed static unsigned volatile";
case Instruct:
return
"break case continue default do else "
"for goto if return switch while";
}
return 0;
}
Then I called the according setColor method in my QScintilla using
code, but I can't make it work...
What should I change in the QScintilla and/or Scintilla code to
recognize more keyword sets so I can colorize them differently ? And
(I don't know if it's Scintilla or QScintilla-specific) are the set
argument of the keywords method and the enum the same corresponding
value ?