搜尋 Mozilla 技術支援網站

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

Learn More

Switching Source Code Syntax Color Theme

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

A recent update (I am at v 98.0.1) introduced dark theme for view source code. This coincides with whether the installed color theme is considered a Light or Dark theme. I use dark theme for FF, but prefer the light-themed source code because the syntax highlighting is more detailed and it’s easier to read.

I couldn’t find anything on this subject, so I experimented on Firefox Color. It appears that the "Toolbar Color" determines whether the browsers is considered to be a Light or Dark theme. Hex #888888 is the cutoff point in straight grayscale. I am not sure how it is determined for color shades.

I searched in about:config and couldn’t immediately find any settings related to source code color mode. For now, my workaround is to set my toolbar color to #888 while keeping everything else dark themed. My browser is considered to be in Light Mode.

Does anyone know of a setting or a way to use light-theme syntax coloring while keeping the browser in Dark Mode? Short of using an external editor (which I would like to avoid for efficiency sake)?

A recent update (I am at v 98.0.1) introduced dark theme for ''view source code''. This coincides with whether the installed color theme is considered a Light or Dark theme. I use dark theme for FF, but prefer the light-themed source code because the syntax highlighting is more detailed and it’s easier to read. I couldn’t find anything on this subject, so I experimented on Firefox Color. It appears that the "Toolbar Color" determines whether the browsers is considered to be a Light or Dark theme. Hex #888888 is the cutoff point in straight grayscale. I am not sure how it is determined for color shades. I searched in about:config and couldn’t immediately find any settings related to source code color mode. For now, my workaround is to set my toolbar color to #888 while keeping everything else dark themed. My browser is considered to be in Light Mode. Does anyone know of a setting or a way to use light-theme syntax coloring while keeping the browser in Dark Mode? Short of using an external editor (which I would like to avoid for efficiency sake)?