Notepad++: How to wrap selected text in brackets, parenthesis, quotes?

28
2013-08
  • user17165

    I'm used to textmate and I'm looking for an editor on Windows that supports this. Notepad++ seems cool, but I when I have some text selected and type an opening bracket it replaces the text with the bracket instead of wrapping it inside brackets. Can this be enabled somehow ?

  • Answers
  • Chris

    You can try this:

    First select the lines that you want surrounded. Then goto:

    TextFX > TextFX Edit > Indent and surround {text line }

    I don't know if there is a short cut assigned by default for this, but I'm sure that you can make a quick macro if you need it.

    Hope this helps some.


  • Related Question

    How to disable brackets highlighting in Notepad++
  • unknown

    How do I disable this?

    enter image description here


  • Related Answers
  • Matthew Iselin

    Go to Settings, Styler Configurator, and change the "Brace Highlight" style.