autumn.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. """
  2. pygments.styles.autumn
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. A colorful style, inspired by the terminal 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 AutumnStyle(Style):
  12. """
  13. A colorful style, inspired by the terminal highlighting style.
  14. """
  15. styles = {
  16. Whitespace: '#bbbbbb',
  17. Comment: 'italic #aaaaaa',
  18. Comment.Preproc: 'noitalic #4c8317',
  19. Comment.Special: 'italic #0000aa',
  20. Keyword: '#0000aa',
  21. Keyword.Type: '#00aaaa',
  22. Operator.Word: '#0000aa',
  23. Name.Builtin: '#00aaaa',
  24. Name.Function: '#00aa00',
  25. Name.Class: 'underline #00aa00',
  26. Name.Namespace: 'underline #00aaaa',
  27. Name.Variable: '#aa0000',
  28. Name.Constant: '#aa0000',
  29. Name.Entity: 'bold #800',
  30. Name.Attribute: '#1e90ff',
  31. Name.Tag: 'bold #1e90ff',
  32. Name.Decorator: '#888888',
  33. String: '#aa5500',
  34. String.Symbol: '#0000aa',
  35. String.Regex: '#009999',
  36. Number: '#009999',
  37. Generic.Heading: 'bold #000080',
  38. Generic.Subheading: 'bold #800080',
  39. Generic.Deleted: '#aa0000',
  40. Generic.Inserted: '#00aa00',
  41. Generic.Error: '#aa0000',
  42. Generic.Emph: 'italic',
  43. Generic.Strong: 'bold',
  44. Generic.EmphStrong: 'bold italic',
  45. Generic.Prompt: '#555555',
  46. Generic.Output: '#888888',
  47. Generic.Traceback: '#aa0000',
  48. Error: '#F00 bg:#FAA'
  49. }