Demo site always uses "friendly" style as fallback

Issue #1431 new
Jesse Tan
created an issue

The Pygments online demo at serves a CSS file that contains rules for the friendly style with selector prefix pre, as well as the selected style with selector prefix .syntax pre.

If the selected style does not contain some style rule (e.g. Monokai does not define a color for Generic prompt (class .gp)), the rule from friendly is used instead.

Responsible code


  1. Enter the following code in the online demo: $ echo "hello"
  2. Set language to Bash session
  3. When viewing the highlighted code, select the monokai style
  4. The prompt $ is colored because it matches .pre .gp defined by the friendly style


The prompt $ is not colored because the requested style it did not define a color.

Comments (0)

  1. Log in to comment