我正在创建一个自定义的lexer。然后我发现StyledTextCtrl.StartTyling()是开始对文本应用样式的方法,但我不知道掩码是什么。我输入StartStyling.__doc__
得到了这个
StyledTextCtrl.StartStyling(self, int pos, int mask)
Set the current styling position to pos and the styling mask to mask.
The styling mask can be used to protect some bits in each styling byte from modification.
如何在这里应用造型面膜?如何选择面膜编号?在
本页解释了其中的大部分内容:
http://www.yellowbrain.com/stc/styling.html
您可能希望您的掩码是0x1f(低5位),这是惯例。低5位用于样式(最多32种不同样式),而高3位用于指示器。
相关问题 更多 >
编程相关推荐