-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
GDScript: Highlight comment markers (TODO
, FIXME
, etc.)
#79761
Conversation
dalexeev
commented
Jul 21, 2023
- Closes Highlight TODO, FIXME and similar keywords in comments in the script editor godot-proposals#4942.
Does it look good on light theme, where comments appear brighter rather than darker? |
4ba459d
to
b373d6f
Compare
Tbh I like them, but I'd like it if a similar result for dark theme could get achieved with something like 0.6 alpha so it's more comment-like in all themes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (rebased on top of master
6588a4a), it works as expected.
See this example with the text from the original proposal for reference:
I like the use of multiple colors, it makes sense here.
The implementation itself looks good to me from a cursory look. I've also tested scenarios such as comments inside strings, and can confirm no highlighting is applied there (it shouldn't).
Changes to the list of keywords in the editor settings also work correctly without requiring a restart.
Indeed, the But I checked the default themes and the colors look good in my opinion. I'm not sure if non-grayscale translucent colors will work for any theme. Let me know if you think it's worth looking into. Notes:
|
I would wait until there's significant demand before implementing more settings (likely in a separate proposal if this PR is merged). |
Here is how it might look (dalexeev@46fb4c1): The disadvantage is that you cannot reset the colors individually. |
Some input on splitting into 3 groups, but that's bikeshedding territory 😬
|
b373d6f
to
5423168
Compare
The new colors look great to me, even on light theme 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. Didn't review the highlighter code in depth but it's relatively low risk.
The feature proposal seems well appreciated by the community.
Thanks! |