Home Download Buy Blog Forum Support

Select Parent Tag

Select Parent Tag

Postby Klikerko on Wed Jul 13, 2011 5:35 pm

Hey guys,

I have ST2 installed and I was wondering is there option to select parent tag like in the Dreamweaver? This is how it works:

Code: Select all
<div>
  <p>
    <span>Something</span>
  </p>
</div>


If my cursor is on the text "Something" and I click option to select parent tag in Dreamweaver whole span tag will be selected. If I click again whole paragpraph will be selected. This goes all the way to the body tag.

Is there something like this in ST2?

Thanks
Klikerko
 
Posts: 9
Joined: Wed Mar 23, 2011 10:14 pm

Re: Select Parent Tag

Postby charlesroper on Thu Jul 14, 2011 8:33 pm

The ZenCoding plugin does this as one of its actions. See here: http://code.google.com/p/zen-coding/wik ... rd/Outward

The default bindings for these two commands in Nick's (Sublimator's) plugin are Ctrl-Shift-T (select inward) and Ctrl-Shift-N (select outward).
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 15 guests