diff -r d51af006fa6b -r 64d8f52bc8c8 py_ext/PythonEditor.py --- a/py_ext/PythonEditor.py Fri Aug 11 15:18:19 2017 +0300 +++ b/py_ext/PythonEditor.py Mon Aug 14 19:13:01 2017 +0300 @@ -32,12 +32,12 @@ KEYWORDS = keyword.kwlist COMMENT_HEADER = "#" - + def SetCodeLexer(self): self.SetLexer(stc.STC_LEX_PYTHON) - + # Line numbers in margin - self.StyleSetSpec(stc.STC_STYLE_LINENUMBER,'fore:#000000,back:#99A9C2,size:%(size)d' % faces) + self.StyleSetSpec(stc.STC_STYLE_LINENUMBER,'fore:#000000,back:#99A9C2,size:%(size)d' % faces) # Highlighted brace self.StyleSetSpec(stc.STC_STYLE_BRACELIGHT,'fore:#00009D,back:#FFFF00,size:%(size)d' % faces) # Unmatched brace @@ -69,15 +69,14 @@ # Identifiers. I leave this as not bold because everything seems # to be an identifier if it doesn't match the above criterae self.StyleSetSpec(stc.STC_P_IDENTIFIER, 'fore:#000000,size:%(size)d' % faces) - + #------------------------------------------------------------------------------- # CFileEditor Main Frame Class #------------------------------------------------------------------------------- class PythonEditor(CodeFileEditor): - + CONFNODEEDITOR_TABS = [ (_("Python code"), "_create_CodePanel")] CODE_EDITOR = PythonCodeEditor -