Idea: Implement loose "syntax" highlighting over the scope highlighting by bolding syntax keywords instead of highlighting them. Perhaps also slightly change the brightness of certain syntax keywords.
Great idea. Bolding language-specific words, and then making strings and comments less bright, would probably achieve 90% of the usefulness of normal syntax highlighting, and combine well with this.
It might be better to use variations in the background color. It may feel more natural to do so and it would allow normal syntax highlighting alongside scope highlighting.
I was just thinking the same; when all my syntax highlighting in a region looks backwards, I normally assume I've got a mismatched quote just before it. I think I'd be thinking that with this all the time.
Subtle changes in the background colour would be a nice alternative.
Make the background color become less contrasting with the foreground color the more you nest.
The larger the number of nested scopes, the harder it's going to be to read it anyway!
Clojure puts the emphasis on functional programming and the context should hardly ever be "global".
So I don't think it would make much sense: the context is the sexp you're currently in (recursively of course) and that's it. Sure it may help a bit if you're inside, say, a let and have a "long" function: so you'd be on a "var" (they're not vars but bear with me) and that same var would be highlighted inside the let. Why not but... You do know anyway that it cannot come from anywhere else because you shouldn't be using globals in the first place.
I do certainly try to only write referentially transparent Clojure function so this kind of coloring really wouldn't help me a lot.
Now of course there is an Emacs minor-mode which does modify the background of each sexp recursively inside your function should you like such a thing. (I'm personally fine with indentation and rainbow parentheses but YMMV)
how would an example of javascript without implicit global variables work?
For example, how does it get access to "Array", "require" or "window" ?
(I don't think "use strict" goes to the length of turning javascript into bracha's newspeak but I may likely have no idea what "strict javascript" actually refer to)
Can anyone point to which particular crockford talk this was inspired by? I've had the idea for scope highlighting bashing around my head for a while now, would love to know more.
PhpStorm has this ability - and I've turned it off.
Too much colors for my blood, and it doesn't look good against Solarized.
One thing I really enjoy about this IDE is the indentation level markers - basically lines draw down to show you where the current scope ends (braces, parens).
That's excellent. A nice variation around this that I've been keen on for a long time and have been wanting to see in modern IDEs is using 3D (or drop shadows) to simulate the nesting of blocks/closures/scopes and give the programmer an instant understanding of the different levels and depths.
35 comments
[ 3.3 ms ] story [ 79.4 ms ] threadIdea: Implement loose "syntax" highlighting over the scope highlighting by bolding syntax keywords instead of highlighting them. Perhaps also slightly change the brightness of certain syntax keywords.
Subtle changes in the background colour would be a nice alternative.
I'm actually serious by the way.
So I don't think it would make much sense: the context is the sexp you're currently in (recursively of course) and that's it. Sure it may help a bit if you're inside, say, a let and have a "long" function: so you'd be on a "var" (they're not vars but bear with me) and that same var would be highlighted inside the let. Why not but... You do know anyway that it cannot come from anywhere else because you shouldn't be using globals in the first place.
I do certainly try to only write referentially transparent Clojure function so this kind of coloring really wouldn't help me a lot.
Now of course there is an Emacs minor-mode which does modify the background of each sexp recursively inside your function should you like such a thing. (I'm personally fine with indentation and rainbow parentheses but YMMV)
http://stackoverflow.com/questions/235360/what-is-the-scope-...
(I don't think "use strict" goes to the length of turning javascript into bracha's newspeak but I may likely have no idea what "strict javascript" actually refer to)
https://news.ycombinator.com/item?id=5095837
Maybe not so useful...
I think it would be great if they added it to JS, with their powerful syntax parsing it would be probably trivial to do.
Edit: probably works in their php, django and rails ide-s.
Too much colors for my blood, and it doesn't look good against Solarized.
One thing I really enjoy about this IDE is the indentation level markers - basically lines draw down to show you where the current scope ends (braces, parens).