bw.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. """
  2. pygments.styles.bw
  3. ~~~~~~~~~~~~~~~~~~
  4. Simple black/white only style.
  5. :copyright: Copyright 2006-2024 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. __all__ = ['BlackWhiteStyle']
  12. class BlackWhiteStyle(Style):
  13. name = 'bw'
  14. background_color = "#ffffff"
  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.EmphStrong: "bold italic",
  35. Generic.Prompt: "bold",
  36. Error: "border:#FF0000"
  37. }