Home Download Buy Blog Forum Support

Different approach to syntax highlighting

Different approach to syntax highlighting

Postby digiduck on Mon Jan 27, 2014 4:23 pm

I found an article this morning describing a different approach to syntax highlighting. The idea looks great but I wonder, how would you go about implementing this in ST? Is it even possible via a plugin?

Here's the article: https://medium.com/p/3a6db2743a1e/
digiduck
 
Posts: 19
Joined: Mon Aug 08, 2011 1:27 pm

Re: Different approach to syntax highlighting

Postby naringas on Tue Jan 28, 2014 4:26 am

Semantic highlighting would make me gladly pay for sublime text 3
naringas
 
Posts: 3
Joined: Sat Sep 17, 2011 9:48 pm

Re: Different approach to syntax highlighting

Postby adzenith on Tue Jan 28, 2014 4:32 am

To change the colors, you have to recreate the syntax file. If you wanted to do that, say, once/second, it might just work.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Different approach to syntax highlighting

Postby digiduck on Tue Jan 28, 2014 5:32 pm

adzenith wrote:To change the colors, you have to recreate the syntax file. If you wanted to do that, say, once/second, it might just work.


Thanks! This is what I was wondering. I didn't think the API had anything to control colors of specific blocks of text so any plugin would have to do this syntax file rewriting/reloading. Good to know.
digiduck
 
Posts: 19
Joined: Mon Aug 08, 2011 1:27 pm

Re: Different approach to syntax highlighting

Postby ril on Tue Feb 04, 2014 10:03 pm

ril
 
Posts: 3
Joined: Thu Aug 22, 2013 12:32 am

Re: Different approach to syntax highlighting

Postby valerij_ on Fri Feb 14, 2014 6:13 pm

go get my plugin or in package control as `Colorcoder` :twisted:
Image

AAAAALSO what does one need to do to get his password reseted in this place? :evil:
valerij_
 
Posts: 41
Joined: Fri Feb 14, 2014 5:59 pm

Re: Different approach to syntax highlighting

Postby FichteFoll on Mon Feb 24, 2014 2:53 am

You need to threaten Jon to implement an email server so that the server can send out password reset mails, I guess.
FichteFoll
 
Posts: 406
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Different approach to syntax highlighting

Postby icylace on Mon Feb 24, 2014 8:28 pm

Colorcoder is good !
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Re: Different approach to syntax highlighting

Postby adam_h on Tue Feb 25, 2014 10:01 am

While this thread seems to be about how to achieve this in Sublime, I would like hear opinions on if this is a great idea or not. Spontaneously it seems interesting and logical idea. But...

when I try to read the code in the rainbow coloured samples I find them slightly hurtful to my eyes. IMHO you do not always look for every identifier in the code, you look for one. So you select it and every instance of that gets highlighted. Much more readable (to me) and we already have it in our editor. : )
adam_h
 
Posts: 6
Joined: Fri Feb 21, 2014 3:44 pm

Re: Different approach to syntax highlighting

Postby icylace on Tue Feb 25, 2014 6:20 pm

I think the biggest benefit would be to spot certain typos more readily without having to select something first. I also think this type of highlighting would work well on top of a more neutral color scheme for the regular syntax stuff we're already used to. I've thought about experimenting with that but for now I'm going to see how semantic highlighting feels for a few days.
icylace
 
Posts: 48
Joined: Mon Jan 14, 2013 7:24 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 28 guests