default.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.default
  4. ~~~~~~~~~~~~~~~~~~~~~~~
  5. The default highlighting style.
  6. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  7. :license: BSD, see LICENSE for details.
  8. """
  9. from pygments.style import Style
  10. from pygments.token import Keyword, Name, Comment, String, Error, \
  11. Number, Operator, Generic, Whitespace
  12. class DefaultStyle(Style):
  13. """
  14. The default style (inspired by Emacs 22).
  15. """
  16. background_color = "#f8f8f8"
  17. default_style = ""
  18. styles = {
  19. Whitespace: "#bbbbbb",
  20. Comment: "italic #408080",
  21. Comment.Preproc: "noitalic #BC7A00",
  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 #D2413A",
  33. Name.Variable: "#19177C",
  34. Name.Constant: "#880000",
  35. Name.Label: "#A0A000",
  36. Name.Entity: "bold #999999",
  37. Name.Attribute: "#7D9029",
  38. Name.Tag: "bold #008000",
  39. Name.Decorator: "#AA22FF",
  40. String: "#BA2121",
  41. String.Doc: "italic",
  42. String.Interpol: "bold #BB6688",
  43. String.Escape: "bold #BB6622",
  44. String.Regex: "#BB6688",
  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: "#00A000",
  53. Generic.Error: "#FF0000",
  54. Generic.Emph: "italic",
  55. Generic.Strong: "bold",
  56. Generic.Prompt: "bold #000080",
  57. Generic.Output: "#888",
  58. Generic.Traceback: "#04D",
  59. Error: "border:#FF0000"
  60. }