Home Download Buy Blog Forum Support

Highlight/Select Inner contents between tags or quotes

Highlight/Select Inner contents between tags or quotes

Postby skube on Tue Mar 13, 2012 6:59 pm

Hi, I was wondering if there was a simple way to highlight or select the contents between tags?

I thought I saw something in the hours I've spent ramping up on ST2 that there was a way to select ever increasing ranges. However, I can't seem to find it again.
skube
 
Posts: 86
Joined: Tue Feb 28, 2012 8:42 pm

Re: Highlight/Select Inner contents between tags or quotes

Postby vitaLee on Tue Mar 13, 2012 7:02 pm

check the shortcut under Selection -> Expand selection to tag
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: Highlight/Select Inner contents between tags or quotes

Postby skube on Tue Mar 13, 2012 7:32 pm

Thank you! I keep forgetting to look in the menu for things after being trained to the keyboard for everything.
skube
 
Posts: 86
Joined: Tue Feb 28, 2012 8:42 pm

Re: Highlight/Select Inner contents between tags or quotes

Postby ckizer on Fri Jan 18, 2013 10:52 pm

in HTML this does NOT select the content of the tag, it select the CONTENT AND the OPEN+CLOSE tag. How can I QUICKLY only select everything between two tags.
ckizer
 
Posts: 19
Joined: Mon Mar 12, 2012 10:26 pm

Re: Highlight/Select Inner contents between tags or quotes

Postby jmaker on Sat Jan 19, 2013 3:29 am

What they said should work for you: Expand Selection To Tag (Ctrl + Shift + A)

Code: Select all
<blockquote>
  <p>lorem ipsum</p>
</blockquote>


If your cursor is anywhere on line 2 after the first < then Ctrl + Shift + A will select just lorem ipsum.

Then repeating that keystroke will expand the selection to the p tags, and then up the tree. I don't know why it's including the tags for you initially.
jmaker
 
Posts: 5
Joined: Fri Jan 11, 2013 12:08 am

Re: Highlight/Select Inner contents between tags or quotes

Postby ckizer on Sat Jan 19, 2013 8:28 pm

<p><a href="http://kizer.me/">Sons of Anarchy</a></p>

My CURSOR is at S[CURSOR]ons of Anarchy. Doing this command highlights
incorrectly like so…

Image

what can i do to make it work right? this is on of the most useful features in the ENTIRE program
ckizer
 
Posts: 19
Joined: Mon Mar 12, 2012 10:26 pm

Re: Highlight/Select Inner contents between tags or quotes

Postby ckizer on Sat Jan 19, 2013 8:30 pm

it seems to work on a different HTML file… i then created two files with perfect w3c validation, and randomly it doesn't always work. I guess this is why regex for smart selections suck :-(
ckizer
 
Posts: 19
Joined: Mon Mar 12, 2012 10:26 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 21 guests