I've been searching out for a plugin that could possibly wraps words with specified text.

For example I double click this word to highlight it :


and using a particular shortcut, it becomes as :

<b>word</b> or myFunction(word); or ...whatever depending what user defines.

I'm currently using Gedit v3. It would be really helpful if someone know a place where I can get this type of plugin.


I've finally been using the default plugin "snippet" of Gedit, I didn't know at first One could select and use a Gedit variable ($GEDIT_SELECTED_TEXT) to manage customizable replacement.


Check out the Zen Coding plugin.

It offers a bunch of stuff to make writing code easier. It will do the markup wrapping like you're asking.

I'm not sure about the function part, though (I actually don't know anything that will do that, not even the big IDEs like Visual Studio or Eclipse). You might have to use snippets for that one, or accept being able to wrap the highlighted segment in just the parens (which I think Zen does, as well) and manually adding the function name.

  • merci a lot, however Zen Coding is appropriate for ones writting html codes. – vdegenne Feb 27 '13 at 16:09

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.