Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



There is also an emacs package that does something similar: https://github.com/jacksonrayhamilton/context-coloring



I think DrRacket also has something like this, but it shows lines between identical variables instead of using colors.


Seems dead for many years already.


How many updates per month are you expecting for a package like this?


Multiple times a day, like radare2. Seriously, if there is no activity in 6 months - then the project is dead.


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?


> 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...


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.


Yes, “Celeste” is the only theme with support for semantic highlighting.

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


Well, neat!

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


Webstorm has an option for this and it makes things like dense enclosures or JSON actually parsable.


Which feature is that? I've been using WebStorm for some time and wishing for a feature that would highlight all matching parenthesis (), [] and {}.


- plugin: rainbow brackets

- preference: semantic highlighting


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.


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.


What made you decide to stop using it?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: