搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

"Standard" CSS syntax coloring?

  • 無回覆
  • 1 有這個問題
  • 1 次檢視
more options

Is there a standard anywhere for syntax highlighting colors - e.g., CSS? Now, it'd be up to CSS3 (at least - I guess). I read a few articles about people updating their CSS syntax colors to "new standards," but I've not found reference to such standards.

The CSS colors in devtools dark theme are quite different from other text editors. Even so, I need to brighten some up - for eyesight reasons. Some devtools CSS highlight colors in dark theme must have been picked by "nocturnal animals" only, that see in the dark. :) Select text color is almost same as dark theme BG.

It's not a big problem changing them, but I'd try to stick to standards, if they exist.

I assume (somewhere) Mozilla has an index of colors they used for which parts in devtools for CSS?

Is there a standard anywhere for syntax highlighting colors - e.g., CSS? Now, it'd be up to CSS3 (at least - I guess). I read a few articles about people updating their CSS syntax colors to "new standards," but I've not found reference to such standards. The CSS colors in devtools dark theme are quite different from other text editors. Even so, I need to brighten some up - for eyesight reasons. Some devtools CSS highlight colors in dark theme must have been picked by "nocturnal animals" only, that see in the dark. :) Select text color is almost same as dark theme BG. It's not a big problem changing them, but I'd try to stick to standards, if they exist. I assume (somewhere) Mozilla has an index of colors they used for which parts in devtools for CSS?