inkpot.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.EmphStrong: "bold italic",
  49. Generic.Prompt: "bold #000080",
  50. Generic.Output: "#888",
  51. Generic.Traceback: "#04D",
  52. Error: "bg:#6e2e2e #ffffff"
  53. }