py_ext/PythonEditor.py
changeset 1110 b6e252733c64
parent 1097 233681f2a00e
child 1138 cf2a6a7c87e8
equal deleted inserted replaced
1109:2dfad20abde3 1110:b6e252733c64
     5 from editors.CodeFileEditor import CodeFileEditor, CodeEditor
     5 from editors.CodeFileEditor import CodeFileEditor, CodeEditor
     6 
     6 
     7 class PythonCodeEditor(CodeEditor):
     7 class PythonCodeEditor(CodeEditor):
     8 
     8 
     9     KEYWORDS = keyword.kwlist
     9     KEYWORDS = keyword.kwlist
    10     COMMENT_HEADER = "##"
    10     COMMENT_HEADER = "#"
    11     
    11     
    12     def SetCodeLexer(self):
    12     def SetCodeLexer(self):
    13         self.SetLexer(stc.STC_LEX_PYTHON)
    13         self.SetLexer(stc.STC_LEX_PYTHON)
    14         
    14         
    15         # Line numbers in margin
    15         # Line numbers in margin