Home Download Buy Blog Forum Support

Open/close bracket matching feature (HTML)?

Open/close bracket matching feature (HTML)?

Postby hxcobd on Wed Jun 29, 2011 4:31 pm

Maybe I'm an idiot and missed an option somewhere...

New to Sublime Text, and I'm writing an HTML document. In editors like Notepad++ (or any other IDE ever, really), you could write an opening <title> bracket, and a closing </title> bracket, and selecting one of them would highlight the other. I'm not sure what the proper name for this feature is.

Is this disabled in Sublime by default or something? Doesn't seem to be working. Thanks a bunch.
hxcobd
 
Posts: 7
Joined: Wed Jun 29, 2011 4:29 pm

Re: Open/close bracket matching feature (HTML)?

Postby johnnykl on Mon Jul 11, 2011 6:18 am

Bump. Is there a setting for it?
johnnykl
 
Posts: 12
Joined: Sat May 14, 2011 9:11 am

Re: Open/close bracket matching feature (HTML)?

Postby iamntz on Mon Jul 11, 2011 6:23 am

Take a look here.
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Open/close bracket matching feature (HTML)?

Postby hxcobd on Mon Jul 11, 2011 9:00 pm

iamntz, I don't think that's what we're looking for. The Highlightwords plugin linked in it just highlights all instances of a given word, which isn't what we want.

We're looking for a plugin that performs the function seen in sublimator's animated gif. Matching of HTML opening and closing brackets.
hxcobd
 
Posts: 7
Joined: Wed Jun 29, 2011 4:29 pm

Re: Open/close bracket matching feature (HTML)?

Postby iamntz on Tue Jul 12, 2011 3:43 am

Oh, then edit User File Settings and add:
Code: Select all
"match_brackets_angle": true


Like so? :D
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Open/close bracket matching feature (HTML)?

Postby hxcobd on Wed Jul 13, 2011 6:34 am

Negative, iamntz. That setting matches the opening and closing angled bracket of one solitary HTML tag, not both the whole opening and whole closing tags of a matched pair.
hxcobd
 
Posts: 7
Joined: Wed Jun 29, 2011 4:29 pm

Re: Open/close bracket matching feature (HTML)?

Postby adzenith on Wed Jul 13, 2011 5:29 pm

Try checking out the ZenCoding plugin. I believe that it does this.
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 19 guests