autumn.py 2.1 KB

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