Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only highlight scope-related constructs #2

Closed
michaelficarra opened this issue Apr 28, 2013 · 10 comments
Closed

only highlight scope-related constructs #2

michaelficarra opened this issue Apr 28, 2013 · 10 comments

Comments

@michaelficarra
Copy link
Contributor

So, only:

construct colour of
the function keyword the scope it introduces
function parameters the scope being introduced
function declaration names the surrounding scope
function expression names the scope being introduced
identifiers (not "identifiers" as part of a static member access, just regular identifiers) the scope in which they were declared
variable declarations the surrounding scope
catch keyword the new block scope it introduces
catch variables the catch scope being introduced

Everything else should just have regular syntax highlighting.

@mazurov
Copy link
Owner

mazurov commented Apr 29, 2013

Highlight only parts (from your table) related to current cursor position? Yes, it's possible... and I agree that it can be more useful.

@michaelficarra
Copy link
Contributor Author

Well I wasn't thinking it would be cursor related. I don't think it would be as helpful that way.

@mazurov
Copy link
Owner

mazurov commented Apr 29, 2013

I have read more carefully and now understand what you meant

@michaelficarra
Copy link
Contributor Author

I've done this 😄.

scope-colouring-0

scope-colouring-1

@vendethiel
Copy link

looks great!

@mcculloughsean
Copy link

👍

@mazurov
Copy link
Owner

mazurov commented May 5, 2013

Yes. Like it, too! It can be one of the colorizing modes.

@mazurov
Copy link
Owner

mazurov commented May 9, 2013

@mazurov mazurov closed this as completed May 9, 2013
@michaelficarra
Copy link
Contributor Author

So cool! I recommend adding a bit of a blur (0.1 or 0.2 em) like I did because it's "secondary" information. It helps me concentrate on the text. Also, you might want to remove the blue colour from identifiers and purple colour from the appropriate keywords. It distorts the background colour and makes it hard to compare.

@mazurov
Copy link
Owner

mazurov commented May 10, 2013

Have added blur (in "scope-related" mode) and a legend for colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants