News for hackers. Stuff that matters.
Re:Lexical differential highlighting instead of syntax highl... by fake-name on Thursday July 11, 2019 @03:49PM (#20415090)
There's a sublime text package that does this for a bunch of different languages: https://github.com/vprimachenko/Sublime-Colorcoder

I'm not involved in any way, I just ran it for a while at one point.

Re:Lexical differential highlighting instead of syntax highl... by synthc on Thursday July 11, 2019 @04:18PM (#20415378)
There is also an emacs package that does something similar: https://github.com/jacksonrayhamilton/context-coloring
Re:Lexical differential highlighting instead of syntax highl... by sprobertson on Thursday July 11, 2019 @04:24PM (#20415432)
Re:Lexical differential highlighting instead of syntax highl... by synthc on Thursday July 11, 2019 @05:14PM (#20415918)
I think DrRacket also has something like this, but it shows lines between identical variables instead of using colors.
Re:Lexical differential highlighting instead of syntax highl... by xvilka on Thursday July 11, 2019 @09:40PM (#20417413)
Seems dead for many years already.
Re:Lexical differential highlighting instead of syntax highl... by cjs_2 on Friday July 12, 2019 @12:22AM (#20418133)
How many updates per month are you expecting for a package like this?
Re:Lexical differential highlighting instead of syntax highl... by xvilka on Friday July 12, 2019 @02:14AM (#20418660)
Multiple times a day, like radare2. Seriously, if there is no activity in 6 months - then the project is dead.
Re:Lexical differential highlighting instead of syntax highl... by mikekchar on Friday July 12, 2019 @03:22AM (#20418909)
This is a lexical highlighter that tries to highlight similar, but different text differently. There's a point in time where there are no new features necessary.

radare2 is a portable reversing framework. I can't think of 2 projects more dissimilar. Perhaps you were thinking that the highlighter actually did something other than color text in an arbitrary way? Can you give an example of something that you would expect to change about it, especially at the rate of multiple times a day?

Re:Lexical differential highlighting instead of syntax highl... by guessmyname on Thursday July 11, 2019 @06:10PM (#20416362)
> There's a sublime text package that does this for a bunch of different languages

You don’t need a package for this, Sublime Text 3 already does this automatically [1].

[1] https://www.sublimetext.com/docs/3/color_schemes.html#hashed...

Re:Lexical differential highlighting instead of syntax highl... by nh2 on Thursday July 11, 2019 @10:38PM (#20417654)
How can I use it?

The simplest way seems to be to use the "Celeste" color scheme which implements this. Is this the only way? I'd like to use a dark theme, like the default Monokai.

Re:Lexical differential highlighting instead of syntax highl... by guessmyname on Friday July 12, 2019 @01:08PM (#20422292)
Yes, “Celeste” is the only theme with support for semantic highlighting.

For dark mode, I use this project — https://github.com/cixtor/monnokay

Re:Lexical differential highlighting instead of syntax highl... by fake-name on Thursday July 11, 2019 @07:56PM (#20416977)
Well, neat!

I haven't used the plugin since the ST2 days, so I didn't realize it was no longer needed.

Re:Lexical differential highlighting instead of syntax highl... by soulofmischief on Thursday July 11, 2019 @07:11PM (#20416736)
Webstorm has an option for this and it makes things like dense enclosures or JSON actually parsable.
Re:Lexical differential highlighting instead of syntax highl... by galaxyLogic on Thursday July 11, 2019 @11:49PM (#20417970)
Which feature is that? I've been using WebStorm for some time and wishing for a feature that would highlight all matching parenthesis (), [] and {}.
Re:Lexical differential highlighting instead of syntax highl... by _virtu on Friday July 12, 2019 @10:23AM (#20420943)
- plugin: rainbow brackets

- preference: semantic highlighting

Re:Lexical differential highlighting instead of syntax highl... by galaxyLogic on Friday July 12, 2019 @03:00PM (#20423393)
Thanks. I tried it but it did not quite do what I needed so I uninstalled it. (I'm afraid of plugins in general taking performace away). It worked on JS-files but I have HTML-documents containing (example) JavaScript etc. code. Seems it did not react to parenthesis in them. Also even in plain JS-files you may have strings containing parenthesis.

Standard WebStorm already highlights matching parenthesis in JavaScript and does a good job at that.

Re:Lexical differential highlighting instead of syntax highl... by soulofmischief on Friday July 12, 2019 @07:48PM (#20425533)
I don't use rainbow brackets, but I do use semantic highlighting. It's worth seeing if semantic highlighting would still be useful to you. It greatly helps scanning speed.
Re:Lexical differential highlighting instead of syntax highl... by cylon13 on Thursday July 11, 2019 @10:03PM (#20417508)
What made you decide to stop using it?