WxPython wx.stc.StyledTextCtrl case insensitive

I use wx.stc.StyledTextCtrl

in and the application where I use it to highlight Forth:

self.styled_text_ctrl = wx.stc.StyledTextCtrl(self, wx.ID_ANY)
self.styled_text_ctrl.SetLexer(wx.stc.STC_LEX_FORTH)
self.styled_text_ctrl.SetMarginType(0, wx.stc.STC_MARGIN_NUMBER)
self.styled_text_ctrl.SetMarginWidth(1, 0)
self.styled_text_ctrl.SetMarginWidth(2, 0)
self.styled_text_ctrl.SetWrapMode(wx.stc.STC_WRAP_WORD)
self.styled_text_ctrl.SetKeyWords(2,": VARIABLE CREATE VALUE CONSTANT USER USER-CREATE VOCABULARY TASK")

      

The problem I am running into is that it will only recognize a keyword if it was in the event it was given, and the problem I am using is case insensitive. Apart from typing every combination of words and words in keywords, is there a way to disable case sensitivity for keywords?

+3


source to share





All Articles