/SurroundSelection

Notepad++ plugin to automatically surround the selection in quotes/brackets/parenthesis

Primary LanguageC++GNU General Public License v2.0GPL-2.0

SurroundSelection

Build status

Notepad++ plugin to automatically surround the selection in quotes/brackets/parenthesis/etc. This can also be used on multiple or rectangular selections.

Demo

Usage

Select some text and type one of the following characters:

  • '
  • "
  • `
  • ( or )
  • [ or ]
  • { or }
  • < or >

The configuration file SurroundSelection.ini provides additional characters to surround with. Use as (for example):

AdditionalChars=*-_

to use *, - and _ to act as surround characters as the above examples do. You can also ignore specific characters:

IgnoreChars=]})>

would prevent the plugin triggering any time there was a "closing" character typed (and would only trigger on opening characters).

Installation

Use the built in Plugin Admin to automatically install the plugin.

Development

The code is developed using Visual Studio 2017. Building the code will generate a DLL which can be used by Notepad++. For convenience, Visual Studio copies the DLL into the Notepad++ plugin directory.

License

This code is released under the GNU General Public License version 2.