Change color of comments?

I’m sorry if I’ve missed an existing post on this, but I’ve been unsuccessful in trying to figure out how to change the color of comments (%%) in Live Preview mode. Does anyone know either the css element that controls this or how to modify it in Minimal Theme with the Style Settings plugin (I surprisingly couldn’t find any option there for comments)?

This will work:

.is-live-preview .cm-comment:not(.cm-formatting) {
  color: green;
}
  • You can remove the .is-live-preview if you also want the snippet to affect source mode.
  • You can remove the :not(.cm-formatting) if you also want the %% formatting syntax to be affected.

Thanks a million! Works like a charm.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.