inkpot.py 2.3 KB

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