Menu

Simple function to bracket words or phrases

2009-04-28
2012-11-13
  • Patrick Forkin

    Patrick Forkin - 2009-04-28

    Hallo!
    Notepad++ is perhaps the nearest editor to something useful without having to program. I am a writer and not a programmer.
    I need to be able to do the following.
    1. Surround mouse marked words or phrases with brackets
    2. Create a simple set of bracket pairs with inset brackets such as:
    2.1. [..... ], (..... ), {.....}
    2.2. [ .....  ( ), {}]
    I am sure that there is a simple way to do this and would like to hear from someone who knows how it can be done.
    Thanks for 'listening' and for any help .
    Have a nice day.
    Kind regards, forkingbr.

     
    • mike_hinson

      mike_hinson - 2009-04-28

      Hi, try this way of using a macro.

      1). Select words or word to enclose in brackets
      2). select macro/start recording
      3). press "<ctl>x" to cut marked text
      4). enter starting bracket e.g. {
      5). press "<ctl>v" to paste test back into document, cursor will be positioned at the end of the block.
      6). enter ending bracket e.g. }
      7). select macro/stop recording
      8). select macro/save current recorded macro
      9). give it a name & a shortcut key

      enjoy :-)

       
MongoDB Logo MongoDB