inkpot.py 2.2 KB

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