Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer

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.

share|improve this answer
merci a lot, however Zen Coding is appropriate for ones writting html codes. – 발렌탕 Feb 27 '13 at 16:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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