default.py 2.4 KB

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