bw.py 1.3 KB

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