default.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. """
  2. pygments.styles.default
  3. ~~~~~~~~~~~~~~~~~~~~~~~
  4. The default highlighting 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. Number, Operator, Generic, Whitespace
  11. class DefaultStyle(Style):
  12. """
  13. The default style (inspired by Emacs 22).
  14. """
  15. background_color = "#f8f8f8"
  16. styles = {
  17. Whitespace: "#bbbbbb",
  18. Comment: "italic #3D7B7B",
  19. Comment.Preproc: "noitalic #9C6500",
  20. #Keyword: "bold #AA22FF",
  21. Keyword: "bold #008000",
  22. Keyword.Pseudo: "nobold",
  23. Keyword.Type: "nobold #B00040",
  24. Operator: "#666666",
  25. Operator.Word: "bold #AA22FF",
  26. Name.Builtin: "#008000",
  27. Name.Function: "#0000FF",
  28. Name.Class: "bold #0000FF",
  29. Name.Namespace: "bold #0000FF",
  30. Name.Exception: "bold #CB3F38",
  31. Name.Variable: "#19177C",
  32. Name.Constant: "#880000",
  33. Name.Label: "#767600",
  34. Name.Entity: "bold #717171",
  35. Name.Attribute: "#687822",
  36. Name.Tag: "bold #008000",
  37. Name.Decorator: "#AA22FF",
  38. String: "#BA2121",
  39. String.Doc: "italic",
  40. String.Interpol: "bold #A45A77",
  41. String.Escape: "bold #AA5D1F",
  42. String.Regex: "#A45A77",
  43. #String.Symbol: "#B8860B",
  44. String.Symbol: "#19177C",
  45. String.Other: "#008000",
  46. Number: "#666666",
  47. Generic.Heading: "bold #000080",
  48. Generic.Subheading: "bold #800080",
  49. Generic.Deleted: "#A00000",
  50. Generic.Inserted: "#008400",
  51. Generic.Error: "#E40000",
  52. Generic.Emph: "italic",
  53. Generic.Strong: "bold",
  54. Generic.EmphStrong: "bold italic",
  55. Generic.Prompt: "bold #000080",
  56. Generic.Output: "#717171",
  57. Generic.Traceback: "#04D",
  58. Error: "border:#FF0000"
  59. }