bw.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. """
  2. pygments.styles.bw
  3. ~~~~~~~~~~~~~~~~~~
  4. Simple black/white only style.
  5. :copyright: Copyright 2006-2021 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. default_style = ""
  14. styles = {
  15. Comment: "italic",
  16. Comment.Preproc: "noitalic",
  17. Keyword: "bold",
  18. Keyword.Pseudo: "nobold",
  19. Keyword.Type: "nobold",
  20. Operator.Word: "bold",
  21. Name.Class: "bold",
  22. Name.Namespace: "bold",
  23. Name.Exception: "bold",
  24. Name.Entity: "bold",
  25. Name.Tag: "bold",
  26. String: "italic",
  27. String.Interpol: "bold",
  28. String.Escape: "bold",
  29. Generic.Heading: "bold",
  30. Generic.Subheading: "bold",
  31. Generic.Emph: "italic",
  32. Generic.Strong: "bold",
  33. Generic.Prompt: "bold",
  34. Error: "border:#FF0000"
  35. }