Home Download Buy Blog Forum Support

Smart wrap in function

Smart wrap in function

Postby isatis39871 on Mon May 09, 2011 7:25 pm

I'm pretty sure it's possible to make it a plugin but i'm not plugin-aware enough to swear it.

This idea:

- you select the text to be wrapped
- you hit whatever shortcut assigned to smart wrapping
- you enter you the element to wrap the text in
- you hit enter

But it should be smart so:

- if you enter <p>, it closes with </p> in html files
- if you enter /* it closes with */ in PHP files
- if you enter """, it closes with """ in py files
- it works with multiple selections so you can wrap several <li> in one row
- etc
isatis39871
 
Posts: 7
Joined: Mon May 09, 2011 7:08 pm

Re: Smart wrap in function

Postby jbrooksuk on Mon May 09, 2011 8:58 pm

I'm sure there was (at least in 1.4 - maybe Plugin driven though) a way to select text, type your tag then press tab or enter (whatever it was) and it'd wrap it.

Also, you can already wrap most things in (, ", ' and { - at least you can in most languages I use.
jbrooksuk
 
Posts: 753
Joined: Sun Apr 11, 2010 10:37 am
Location: England


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests