editors/TextViewer.py
changeset 1833 2269739dd098
parent 1782 5b6ad7a7fd9d
child 1847 6198190bc121
equal deleted inserted replaced
1832:0f1081928d65 1833:2269739dd098
    68     SEARCH_RESULT_HIGHLIGHT: STC_PLC_SEARCH_RESULT,
    68     SEARCH_RESULT_HIGHLIGHT: STC_PLC_SEARCH_RESULT,
    69 }
    69 }
    70 
    70 
    71 
    71 
    72 def LineStartswith(line, symbols):
    72 def LineStartswith(line, symbols):
    73     return reduce(lambda x, y: x or y, map(lambda x: line.startswith(x), symbols), False)
    73     return reduce(lambda x, y: x or y, map(line.startswith, symbols), False)
    74 
    74 
    75 
    75 
    76 class TextViewer(EditorPanel):
    76 class TextViewer(EditorPanel):
    77 
    77 
    78     ID = ID_TEXTVIEWER
    78     ID = ID_TEXTVIEWER