bw.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.bw
  4. ~~~~~~~~~~~~~~~~~~
  5. Simple black/white only style.
  6. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  7. :license: BSD, see LICENSE for details.
  8. """
  9. from pygments.style import Style
  10. from pygments.token import Keyword, Name, Comment, String, Error, \
  11. Operator, Generic
  12. class BlackWhiteStyle(Style):
  13. background_color = "#ffffff"
  14. default_style = ""
  15. styles = {
  16. Comment: "italic",
  17. Comment.Preproc: "noitalic",
  18. Keyword: "bold",
  19. Keyword.Pseudo: "nobold",
  20. Keyword.Type: "nobold",
  21. Operator.Word: "bold",
  22. Name.Class: "bold",
  23. Name.Namespace: "bold",
  24. Name.Exception: "bold",
  25. Name.Entity: "bold",
  26. Name.Tag: "bold",
  27. String: "italic",
  28. String.Interpol: "bold",
  29. String.Escape: "bold",
  30. Generic.Heading: "bold",
  31. Generic.Subheading: "bold",
  32. Generic.Emph: "italic",
  33. Generic.Strong: "bold",
  34. Generic.Prompt: "bold",
  35. Error: "border:#FF0000"
  36. }