Make Globals Standout
bendman opened this issue · 1 comments
bendman commented
Hey, I use Levels often while coding, switching back and forth to ensure my variable scopes are all correct. Probably the biggest issue in Javascript with scope that I see is people forgetting the var keyword, defaulting a variable to global. With the initial color scheme in Levels you actually can't see this, as global variables are set to have the same color as the background.
To fix this, what I normally do is change the Level-1 foreground to a high contrast color for the theme, for example:
Think this would be a sensible change to make to the github repo, so everyone can see globals easily?
oskarols commented
Ohh, that's actually quite nice. +1