inkpot.py 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.inkpot
  4. ~~~~~~~~~~~~~~~~~~~~~~
  5. A highlighting style for Pygments, inspired by the Inkpot theme for VIM.
  6. :copyright: Copyright 2006-2019 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 Text, Other, Keyword, Name, Comment, String, \
  11. Error, Number, Operator, Generic, Whitespace, Punctuation
  12. class InkPotStyle(Style):
  13. background_color = "#1e1e27"
  14. default_style = ""
  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.Prompt: "bold #000080",
  51. Generic.Output: "#888",
  52. Generic.Traceback: "#04D",
  53. Error: "bg:#6e2e2e #ffffff"
  54. }