PluginSelectionEncloser.py

changeset 32
c696284413d8
parent 31
d90ac18935f8
child 34
7109372150f6
equal deleted inserted replaced
31:d90ac18935f8 32:c696284413d8
22 # Start-Of-Header 22 # Start-Of-Header
23 name = "Selection Encloser Plug-in" 23 name = "Selection Encloser Plug-in"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 24 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 25 autoactivate = True
26 deactivateable = True 26 deactivateable = True
27 version = "2.1.2" 27 version = "2.1.3"
28 className = "SelectionEncloserPlugin" 28 className = "SelectionEncloserPlugin"
29 packageName = "SelectionEncloser" 29 packageName = "SelectionEncloser"
30 shortDescription = "Enclose the selection with a string." 30 shortDescription = "Enclose the selection with a string."
31 longDescription = \ 31 longDescription = \
32 """This plug-in implements a tool to enclose the selection of""" \ 32 """This plug-in implements a tool to enclose the selection of""" \
361 else: 361 else:
362 newText = string + editor.selectedText() + string 362 newText = string + editor.selectedText() + string
363 editor.beginUndoAction() 363 editor.beginUndoAction()
364 editor.replaceSelectedText(newText) 364 editor.replaceSelectedText(newText)
365 editor.endUndoAction() 365 editor.endUndoAction()
366
367 #
368 # eflag: noqa = M801

eric ide

mercurial