-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Lines containing syntax errors are impossible to read #60
Comments
Hi @mojodna 👋, thanks for your contribution 👍 |
I guess the problem here is that the whole line is highlighted with I've tried to use a opacity of 60% for Reduced opacity of 60% I came up with a styling that doesn't make use of a background color at all based on the fact that it is a duplicate highlighting. If there's a syntax error the invalid tokens will be highlighted with The new styles for Code Inspection errors will simply use Improved error and Unknown Symbol styles |
Nice! |
A line that contained both a syntax error as well as a "IntelliJ Code Inspection" (`ERRORS_ATTRIBUTES` editor scheme key) error was unreadable because both error detection scopes/types applied their different highlighting styles resulting in a background and foreground color colorized with `nord11`. This made it impossible to read the text. Some tests using a opacity of 60% for `nord11` as background color instead resulted in a "dirty redish" color due to the miy with thge base editor background color. Therefore a better style of highlighting these errors has been designed. The new style doesn't make use of a background color at all based on the fact that it is a duplicate highlighting. If there's a syntax error the invalid tokens will be highlighted with `nord11` due to the syntax error so there is no need to additionally colorize the background with `nord11` which is the main reson for the unreadable text. The new styles for "Code Inspection" errors has been simplified to use `nord11` as foreground color with a bold underline and the already used error stripe next to the line numbers. This design decision also comes with a change for the "Unknown Symbol" highlighting (`WRONG_REFERENCES_ATTRIBUTES` color scheme key) that now uses a dotted underline instead to differentiate from the new error styles. GH-60
The text was updated successfully, but these errors were encountered: