Home Download Buy Blog Forum Support

Select full tag?

Select full tag?

Postby ow1n on Fri Nov 20, 2009 3:48 pm

One of the features I love about the editor I'm trying to give up is the ability to select a full HTML tag and all it's contents with one command. So if my cursor is anywhere within the opening or closing tag and I hit the keys for "Select full tag" I'll get a selection that includes the opening tag, the contents, and the closing tag.

Is this possible with Sublime Text?
ow1n
 
Posts: 11
Joined: Mon Nov 16, 2009 4:23 pm

Re: Select full tag?

Postby David on Fri Nov 20, 2009 6:39 pm

I too am trying to give up my other editor for Sublime and this is one of those make-or-break features I am finding hard to leave behind with my old editor. Any chance this is in the works?
David
 
Posts: 1
Joined: Fri Nov 20, 2009 6:38 pm

Re: Select full tag?

Postby ilya on Fri Nov 20, 2009 6:44 pm

Read this topic for details and examples:
CSS Select ( WebDevelopment Package)

And use this package ;)
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Select full tag?

Postby ow1n on Fri Nov 20, 2009 8:03 pm



Looks cool. I wish it was less diabolically difficult to 1) find the home of the tool [the link is on page 3], 2) figure out how to install it (with no git setup) and 3) figure out how to use it. These soundless screencasts are cool, but as a new user of Sublime Text I could use a little more help.
ow1n
 
Posts: 11
Joined: Mon Nov 16, 2009 4:23 pm

Re: Select full tag?

Postby vim on Fri Nov 20, 2009 8:28 pm

1. download sublimator's AAALoadFirstExtensions as Zip (top-right corner "get source >>")
2. download sublimator's WebDevelopment as Zip (top-right corner "get source >>")
3. open sublime text, choose on the menu: preferences > browse packages
4. extract both zip files into this location. if you want things to be tidy, rename those directories since bitbucket turns those name to lower case (i.e. rename aaaloadfirstextensions -> AAALoadFirstExtensions, and webdevelopment -> WebDevelopment)
5. you should get two new directories under that location
6. to use it, on sublime menu choose: preferences > per-type key binding > WebDevelopment > default - here you can see the key binding to use

* next step is to use sublimator's ZenCoding, you should be able to do it by your self now...

enjoy :)
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Select full tag?

Postby ow1n on Fri Nov 20, 2009 8:55 pm

Thanks vim, that was a big help. I was experimenting with renaming the source zips with a .sublime-package extension.
ow1n
 
Posts: 11
Joined: Mon Nov 16, 2009 4:23 pm

Re: Select full tag?

Postby vim on Sat Nov 21, 2009 7:47 am

sublimator wrote:I wouldn't use it ... it's an unfinished prototype and doesn't really work and likely never will.


someone got up on the wrong side of the bed? :roll:
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Select full tag?

Postby ow1n on Mon Nov 23, 2009 2:28 pm

Hmmm... If the author is badmouthing it maybe I should reconsider? And you'll have to go back quite a bit farther to guess my editor: ColdFusion Studio 5 (basically HomeSite), even though I haven't touched ColdFusion in years.

I take it you're not pursuing development of your WebDevelopment package sublimator?
ow1n
 
Posts: 11
Joined: Mon Nov 16, 2009 4:23 pm

Re: Select full tag?

Postby EJ12N on Mon Nov 23, 2009 11:53 pm

ow1n wrote:Hmmm... If the author is badmouthing it maybe I should reconsider? And you'll have to go back quite a bit farther to guess my editor: ColdFusion Studio 5 (basically HomeSite), even though I haven't touched ColdFusion in years.

I take it you're not pursuing development of your WebDevelopment package sublimator?


is quite good package, believe me I use it a lot in when I'm in coding mode :P
It does have some glitches and is NOT perfect. It behaves at least 98% of the time for me. All features work as expected.

Only downside is the xml parser the plugin uses which is VERY strict, and I mean strict as in using " " the parsers craps out ( USED TO!, sublimator patched this for us! :) )
I think sublimator is bad mouthing it because the plugin doesn't meet his coding ethics and standards (which I know are very HIGH lol) and of course is a little buggy in some cases. And it will fustrate the hell out of the regular user. I think any average coder will be good. *If your new to HTML and know nothing about coding and standards don't use this package, it will fustrate u lol*

I use it all the time I highly recommend u use it if you do a lot of web coding, it works wonders and saves a shit load of time specially when the document gets big. I recommend u stack it with ZenCoding package for a truly powerful HTML/XML coding experience! Trust me on this ;) I been using these packages ever since they were babies lol :D

It's unlikely that it well ever work as nicely as notepad++, the editor I'm guessing he's coming from.

Light years ahead of it... only advantage npp has is the highlighting of matching tag... nothing else.
And really I don't miss it at all and I don't even think is an advantage... why?

I can select beginning and ending tag easily... to rename perhaps
I can jump back and forth to end or beginning tag whenever I want to.
I can jump back and forth between all children of a certain tag.
I can jump back and forth between all tags in my documents.
I can select content inside the tags whenever I need to replace something. (works with multiple selections too)
I can "pretty print" / tidy, tags (and their children) automatically.
I can use jquery syntax to select my tags... ex: ul#nav; li.something; td:even; etc...

I don't see why I would need the highlighting of the tags other than for looks. Notepad++ will probably never have this power I don't even think other editor out there can match it. (maybe vim or emacs :P)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests