Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a plugin, macro, or some sort of option for placing tags around selected text after I highlight and begin typing?

share|improve this question
    
I've seen this basic functionality in Textmate repeatedly. –  Rein Sangeki Feb 9 '11 at 19:01
    
you can see my answer in this question : superuser.com/questions/453235/… –  bossomfriend Nov 27 '12 at 12:09

1 Answer 1

up vote 3 down vote accepted

yes use the "Snippet Plus" Plugin. Then create your snippet and use the function "Surround with". It behaves like the Surround With of Visual Studio.

share|improve this answer
    
Thanks for the response but I was looking for something that actually works like Textmates, where you can just highlight the text and begin typing a tag and it auto surrounds it with said tag, rather than this which seems to need me to manually tell it I want to use surrond with. –  Rein Sangeki Feb 9 '11 at 19:38
    
@ReinSangeki that will be in direct conflict with the traditional behaviour of "Select and Overwrite", use a little the plugin that i'm mentionting. Maybe its all that you need. –  mjsr Feb 11 '11 at 21:13
    
Yeah I have been playing around with the plugin you've recommended. It's not perfect but it gets the job done. Thanks. –  Rein Sangeki Mar 7 '11 at 16:08
    
@ReinSangeki don't forget to mark as answer, :) –  mjsr Mar 7 '11 at 21:12
    
SnippetPlus can be downloaded from sourceforge.net/projects/snippetplus –  Seth Petry-Johnson May 25 '11 at 15:03

Your Answer

 
discard

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.