2

Is there any way to wrap the selected text in ',",),},],> or around any symbol in Notepad++?

I have looked around all of the plugins but there is nothing similar to what Textmate or eclipse can do.

  • Note that the answer to this question used TextFX plugin, which may not be enabled by default. You can enable it in the PluginManager and choose unstable plugins. – Paul Jan 12 '12 at 5:55
  • I saw that but it doesn't fully answer the question, since it only allows for {}s – alme1304 Jan 12 '12 at 6:05
  • I just finished making a small python script that does exactly what TextMate does (more or less), I don't know if there is a way to convert it into an actual plugin tho – alme1304 Jan 12 '12 at 7:52
7

I would go for a real simple solution: Macros.

  1. Select Text
  2. Macro - Start Recording
  3. Ctrl-X
  4. '[' Ctrl-V ']'
  5. Macro - Stop Recording
  6. Macro - Save Current Recorded Macro

Within 5 minutes you should be able to get all the wraps you want and assign them to shortcuts like you need them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.