Thanks for your help, that did the trick. Your solution brings up one more question for me. How do you know what each styleNum value stands for in the StyleSetSpec(styleNum, spec) function? I saw that there is a description for STC_STYLE_DEFAULT and a few others, but my understanding is there are styleNums from 0-32. Thanks again for your help.
> Hello,
>
> Instead of SetBackgroundColour use StyleSetSpec and the related
> STC_STYLE_* flags for configuring the styles.
>
> self.StyleSetSpec(0, "back:#000000,fore:#FFFFFF")
> self.StyleSetSpec(stc.STC_
> STYLE_DEFAULT, "back:#000000,fore:#FFFFFF")
>
> Cody
Cody,
Thanks for your help, that did the trick. Your solution brings up one more question for me. How do you know what each styleNum value stands for in the StyleSetSpec(styleNum, spec) function? I saw that there is a description for STC_STYLE_DEFAULT and a few others, but my understanding is there are styleNums from 0-32. Thanks again for your help.
Scott
It depends what lexer your using. If you are using a builtin lexer each has its own set of style id's.
i.e) For highlighting CSS documents
STC_LEX_CSS
STC_CSS_DEFAULT
STC_CSS_CLASS
...
If you are defining your own custom highlighter for some language that doesn' have builtin lexer then you can define your own flags and set the style bytes using StartStyling. If you are using or planning to do custom highlighting then you should look at the Scintilla documentation for writing a container lexer. (http://sphere.sourceforge.net/flik/docs/scintilla-container_lexer.html).