Home Download Buy Blog Forum Support

open and close syntax highlight

open and close syntax highlight

Postby indecline on Mon Jun 20, 2011 4:46 pm

im so in love with this editor , im using it about several months for now , but i cant replace it with my we builder 2010 because it has very very interesting feature that i can not find here.

Example :

<div>

some text

</div>


when i click <div> its hightlights and i see the end tag highlited too

the same reverse.

example 2 :

When i select with mouse $hello all the same words $hello are also highlited:

A dream:) thanks
indecline
 
Posts: 1
Joined: Mon Jun 20, 2011 4:42 pm

Re: open and close syntax highlight

Postby charlesroper on Tue Jun 21, 2011 4:10 pm

Yeah, this would be a really useful feature. There is a request here for something similar. A few comments down that page "leeoniya" suggests Dev-PHP as having a great implementation of this feature. I've just tried it and, yeah, that's pretty much as I'd personally like it.
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Re: open and close syntax highlight

Postby PinnacleWebDesign on Thu Jun 23, 2011 12:11 pm

PinnacleWebDesign
 
Posts: 33
Joined: Sun Aug 09, 2009 6:43 pm
Location: UK

Re: open and close syntax highlight

Postby Phunky on Sat Jun 25, 2011 12:56 pm

Sublimator care to share :D
Phunky
 
Posts: 35
Joined: Mon Feb 07, 2011 5:02 pm

Re: open and close syntax highlight

Postby ajpalkovic on Sun Jun 26, 2011 4:44 am

You can still use threads in a sublime plugin. You just can't interact with the view from the thread. The easiest way is to use a global variable to store the data of the view. The plugin copies the view into that variable, and the thread periodically reads that string, does stuff with it and updates another global.

So, you can definitely do background processing stuff, you just have to incur the cost of making a copy of the view each time.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: open and close syntax highlight

Postby charlesroper on Mon Jun 27, 2011 8:24 pm

sublimator wrote:To be honest I've never really found highlighting to be all that necessary as long as you had commands that could select or move to either end of nodes. You generally look so you can select or navigate ...


That's true. Is there any way of doing this in ST2 at present?

Update: actually, the main reason I find highlighting useful is to more easily grok the content of tags at a glance. Zen's select tag content command was very useful for that. Is Zen Coding possible in ST2 yet?
charlesroper
 
Posts: 107
Joined: Thu Feb 18, 2010 7:30 am

Re: open and close syntax highlight

Postby ajpalkovic on Mon Jun 27, 2011 8:55 pm

You could always solve the problem by upgrading to haml :)
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: open and close syntax highlight

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

So has there been any development here? I'd kill for the plugin seen in sublimator's animated gif on page 1.
hxcobd
 
Posts: 7
Joined: Wed Jun 29, 2011 4:29 pm

Re: open and close syntax highlight

Postby ilya on Tue Jul 12, 2011 5:35 am

No comments. It's just cool!

Sublimator Image
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: open and close syntax highlight

Postby pyparadigm on Tue Aug 23, 2011 5:12 am

SublimeTagmatcher:
viewtopic.php?f=5&t=2796
pyparadigm
 
Posts: 23
Joined: Thu Aug 04, 2011 8:15 am

Next

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 13 guests