default.py 2.5 KB

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