6

I was looking at two different answers, one C++ and one C, and noticed the color for strings between the two are different colors of red. The C++ is a bright red, a bit harder to read, and the C red is darker, and at least to my eyes looks nore readable and normal. The examples are:

enter image description here

From Beginner C++ problem; I am trying to learn about input validation loops

And then for C:

enter image description here

From Split string with delimiters in C

I understand from reviewing similar questions that google prettify is used and there can be corner-cases where the highlighting differs, e.g. C and C++ syntax highlighting are the same?. However, for something as common as string-literals, I would expect the color to be the same between both languages.

Is this a deliberate choice that is being made?, or is this just the result of limitations in google prettify?

7
  • 2
    Yes, I am also facing the same issue with HTML/CSS code inside snippet, strange new coloration. I thought it was my eyes but seems not .. Commented Feb 26, 2020 at 22:41
  • Well, at least that proves I'm not going senile :) Commented Feb 26, 2020 at 22:43
  • 1
    This may have been a caching thing? Both snippets render with the same colours for me. There's been a recent change to syntax highlighting that may have caused the mismatch?
    – Rob Mod
    Commented Feb 26, 2020 at 23:07
  • 3
    @Rob Uugh.. But thank you for the link. The new colors are way too bright/saturated. The same color would work if they were desaturated to work on dark backgrounds. I most certainly prefer what the cached image shows compared to the "Electric Red" of the new string color. When you pass 50, you appreciate the old "If it ain't broke -- don't fix it" more and more. Commented Feb 26, 2020 at 23:49
  • I guess being over 50 also makes you dislike saturated colors? I kinda like the new saturated colors. Some color pop is nice because it makes them easier to distinguish from the black plain text. The only important thing is sufficient contrast against the background, but...to my eyes, it looks like even the red has that.
    – Cody Gray Mod
    Commented Feb 26, 2020 at 23:56
  • 1
    Yes, I'm not against color, but when I put night-view on, the brighter reds really glow against the darker background. Human physiology will accommodate most changes in time until they are no longer noticed. The new palette would have been nice to get the community feedback on. What SO has had has worked so well the past few years, that a change may not always be for the better. At least we know what happened. Commented Feb 27, 2020 at 0:35
  • Thank You! Whoever found the happy medium of #942121 instead of #C02D2E for the red did a very good job! Commented Feb 28, 2020 at 3:46

0

You must log in to answer this question.

Browse other questions tagged .