inkpot.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. """
  2. pygments.styles.inkpot
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. A highlighting style for Pygments, inspired by the Inkpot theme for VIM.
  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 Text, Other, Keyword, Name, Comment, String, \
  10. Error, Number, Operator, Generic, Whitespace, Punctuation
  11. __all__ = ['InkPotStyle']
  12. class InkPotStyle(Style):
  13. name = 'inkpot'
  14. background_color = "#1e1e27"
  15. styles = {
  16. Text: "#cfbfad",
  17. Other: "#cfbfad",
  18. Whitespace: "#434357",
  19. Comment: "#cd8b00",
  20. Comment.Preproc: "#409090",
  21. Comment.PreprocFile: "bg:#404040 #ffcd8b",
  22. Comment.Special: "#808bed",
  23. Keyword: "#808bed",
  24. Keyword.Pseudo: "nobold",
  25. Keyword.Type: "#ff8bff",
  26. Operator: "#666666",
  27. Punctuation: "#cfbfad",
  28. Name: "#cfbfad",
  29. Name.Attribute: "#cfbfad",
  30. Name.Builtin.Pseudo: '#ffff00',
  31. Name.Builtin: "#808bed",
  32. Name.Class: "#ff8bff",
  33. Name.Constant: "#409090",
  34. Name.Decorator: "#409090",
  35. Name.Exception: "#ff0000",
  36. Name.Function: "#c080d0",
  37. Name.Label: "#808bed",
  38. Name.Namespace: "#ff0000",
  39. Name.Variable: "#cfbfad",
  40. String: "bg:#404040 #ffcd8b",
  41. String.Doc: "#808bed",
  42. Number: "#f0ad6d",
  43. Generic.Heading: "bold #000080",
  44. Generic.Subheading: "bold #800080",
  45. Generic.Deleted: "#A00000",
  46. Generic.Inserted: "#00A000",
  47. Generic.Error: "#FF0000",
  48. Generic.Emph: "italic",
  49. Generic.Strong: "bold",
  50. Generic.EmphStrong: "bold italic",
  51. Generic.Prompt: "bold #000080",
  52. Generic.Output: "#888",
  53. Generic.Traceback: "#04D",
  54. Error: "bg:#6e2e2e #ffffff"
  55. }