autumn.py 2.1 KB

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