Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Switching Source Code Syntax Color Theme

  • No replies
  • 1 has this problem
  • 13 views
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)?