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

Highlighting assumes a dark background #7737

Closed
alexcrichton opened this issue Jul 12, 2013 · 9 comments
Closed

Highlighting assumes a dark background #7737

alexcrichton opened this issue Jul 12, 2013 · 9 comments

Comments

@alexcrichton
Copy link
Member

I've got a terminal with a white background, and the current highlighting makes me very sad:

pic

I would love for this to be magically detected and not turned on by default for me, but I could also live for now with just a flag to disable it. I don't want to have to disable colors completely, though!

ping @kud1ing, @cmr

@lilyball
Copy link
Contributor

I have an open PR that fixes this already, #7716.

@alexcrichton
Copy link
Member Author

Oh awesome, thanks so much!

@kud1ing
Copy link

kud1ing commented Jul 12, 2013

I somehow never had a doubt that people would use a darkish background, sorry.
Now we need to come up with a solution for people having yellow, red or green backgrounds.

@lilyball
Copy link
Contributor

PR #7716 handles all background colors. Same solution as clang, which is to just use bold, which means the default foreground color is still used.

@thestinger
Copy link
Contributor

@kud1ing: if they have yellow, red or green backgrounds I think they'll have switched around the other colours to be sane on that background too. The best solution would be making it configurable, like how ls has LS_COLORS.

@kballard: we use some other colours though

@kud1ing
Copy link

kud1ing commented Jul 12, 2013

@kballard: diagnostic.rs'sdiagnosticcolor() is the remaining place where hard-coded colors might conflict with the user's background color.

@huonw
Copy link
Member

huonw commented Jul 15, 2013

#7716 has landed, is this resolved?

@lilyball
Copy link
Contributor

@huonw: The primary complaint has been resolved. There was some grumbling that the diagnostic colors should be configurable as well, but I think that's a separate issue (e.g. that would be a feature, not a bug).

@alexcrichton
Copy link
Member Author

This particular issue has been resolved, if there are more about colors then I agree those should be separate issue.

For posterity it was closed by 68a32aa of #7716

flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 4, 2021
…Frednet

Add suggestion to missing backticks error

changelog: Add a machine applicable suggestion for the [`doc_markdown`] missing backticks lint

closes: rust-lang#7737
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants