pastie.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. """
  2. pygments.styles.pastie
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to the `pastie`_ default style.
  5. .. _pastie: http://pastie.caboo.se/
  6. :copyright: Copyright 2006-2024 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. __all__ = ['PastieStyle']
  13. class PastieStyle(Style):
  14. """
  15. Style similar to the pastie default style.
  16. """
  17. name = 'pastie'
  18. styles = {
  19. Whitespace: '#bbbbbb',
  20. Comment: '#888888',
  21. Comment.Preproc: 'bold #cc0000',
  22. Comment.Special: 'bg:#fff0f0 bold #cc0000',
  23. String: 'bg:#fff0f0 #dd2200',
  24. String.Regex: 'bg:#fff0ff #008800',
  25. String.Other: 'bg:#f0fff0 #22bb22',
  26. String.Symbol: '#aa6600',
  27. String.Interpol: '#3333bb',
  28. String.Escape: '#0044dd',
  29. Operator.Word: '#008800',
  30. Keyword: 'bold #008800',
  31. Keyword.Pseudo: 'nobold',
  32. Keyword.Type: '#888888',
  33. Name.Class: 'bold #bb0066',
  34. Name.Exception: 'bold #bb0066',
  35. Name.Function: 'bold #0066bb',
  36. Name.Property: 'bold #336699',
  37. Name.Namespace: 'bold #bb0066',
  38. Name.Builtin: '#003388',
  39. Name.Variable: '#336699',
  40. Name.Variable.Class: '#336699',
  41. Name.Variable.Instance: '#3333bb',
  42. Name.Variable.Global: '#dd7700',
  43. Name.Constant: 'bold #003366',
  44. Name.Tag: 'bold #bb0066',
  45. Name.Attribute: '#336699',
  46. Name.Decorator: '#555555',
  47. Name.Label: 'italic #336699',
  48. Number: 'bold #0000DD',
  49. Generic.Heading: '#333',
  50. Generic.Subheading: '#666',
  51. Generic.Deleted: 'bg:#ffdddd #000000',
  52. Generic.Inserted: 'bg:#ddffdd #000000',
  53. Generic.Error: '#aa0000',
  54. Generic.Emph: 'italic',
  55. Generic.Strong: 'bold',
  56. Generic.EmphStrong: 'bold italic',
  57. Generic.Prompt: '#555555',
  58. Generic.Output: '#888888',
  59. Generic.Traceback: '#aa0000',
  60. Error: 'bg:#e3d2d2 #a61717'
  61. }