Looking at the Stani Python IDE , it definitely comes bundled with many useful features. In addition, this does not allow me to do individual syntax coloring.
From Q & A on the author’s site:
"- changing colors is not supported unless you manually edit sm / wxp / stc.py"
So, I tried to test this code myself in search of an ideal full-featured development environment.
The stc.py file is apparently a modification of the author in the original Robin Dunn code for wxPython. Buried inside all event processing seems to be code that defines the color of various syntax.
All I want to do is change the background color to black, change the black texts to white, and if all the other pictures appear under these two new colors, I’m a happy encoder.
Has anyone tried this? Thanks
edit: Lines around ~ 441
def SetStyles(self)
are it lines?
edit ^ 2: can anyone find and adjust the color of the blinking cursor? Or is this something a bit more hardcoded?
edit ^ 3: That I have so far changed the hexadecimal color values from the -441 line in the SetStyles function.
def SetStyles(self):
if hasattr(self,'SetUseAntiAliasing'):
self.SetUseAntiAliasing(True)
self.IndicatorSetStyle(2, wx_stc.STC_INDIC_SQUIGGLE)
self.IndicatorSetForeground(2, wx.RED)
if 1:
self.StyleSetSpec(wx_stc.STC_P_DEFAULT, "face:%(mono)s,fore:#B0B0B0,size:%(size)d" % self.faces)
self.StyleClearAll()
self.StyleSetSpec(wx_stc.STC_STYLE_DEFAULT, "face:%(mono)s,fore:#B0B0B0,back:#00000,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_STYLE_LINENUMBER, "back:#C0C0C0,face:%(mono)s,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_STYLE_CONTROLCHAR, "face:%(mono)s,fore:#B0B0B0" % self.faces)
self.StyleSetSpec(wx_stc.STC_STYLE_BRACELIGHT, "fore:#B0B0B0,back:#0000FF,bold")
self.StyleSetSpec(wx_stc.STC_STYLE_BRACEBAD, "fore:#B0B0B0,back:#FF0000,bold")
self.StyleSetSpec(wx_stc.STC_P_DEFAULT, "face:%(mono)s,fore:#000000,back:#000000,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_COMMENTLINE, "face:%(mono)s,fore:#F70909,back:#000000,italic,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_NUMBER, "face:%(mono)s,fore:#FFFFFF,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_STRING, "face:%(mono)s,fore:#34C640,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_CHARACTER, "face:%(mono)s,fore:#43AB4E,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_WORD, "face:%(mono)s,fore:#FF9100,bold,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_TRIPLE, "face:%(mono)s,fore:#7F0000,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_TRIPLEDOUBLE, "face:%(mono)s,fore:#7F0000,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_CLASSNAME, "face:%(mono)s,fore:#00AEFF,bold,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_DEFNAME, "face:%(mono)s,fore:#FFFF00,bold,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_OPERATOR, "face:%(mono)s,fore:#FFFFFF,bold,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_IDENTIFIER, "fore:#FFFFFF")
self.StyleSetSpec(wx_stc.STC_P_COMMENTBLOCK, "face:%(mono)s,fore:#990000,back:#C0C0C0,italic,size:%(size)d" % self.faces)
self.StyleSetSpec(wx_stc.STC_P_STRINGEOL, "face:%(mono)s,fore:#B1CCB0,face:%(mono)s,back:#E0C0E0,eol,size:%(size)d" % self.faces)
It uses a black background and changes other colors to be brighter.
Questions remaining:
1. ( "self.", "classname." ..) , ".", , , (, )
2. ( "|" ) - , .
3. , , (, pyscripter)?