murphy.py 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. """
  2. pygments.styles.murphy
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. Murphy's style from CodeRay.
  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 Keyword, Name, Comment, String, Error, \
  10. Number, Operator, Generic, Whitespace
  11. class MurphyStyle(Style):
  12. """
  13. Murphy's style from CodeRay.
  14. """
  15. default_style = ""
  16. styles = {
  17. Whitespace: "#bbbbbb",
  18. Comment: "#666 italic",
  19. Comment.Preproc: "#579 noitalic",
  20. Comment.Special: "#c00 bold",
  21. Keyword: "bold #289",
  22. Keyword.Pseudo: "#08f",
  23. Keyword.Type: "#66f",
  24. Operator: "#333",
  25. Operator.Word: "bold #000",
  26. Name.Builtin: "#072",
  27. Name.Function: "bold #5ed",
  28. Name.Class: "bold #e9e",
  29. Name.Namespace: "bold #0e84b5",
  30. Name.Exception: "bold #F00",
  31. Name.Variable: "#036",
  32. Name.Variable.Instance: "#aaf",
  33. Name.Variable.Class: "#ccf",
  34. Name.Variable.Global: "#f84",
  35. Name.Constant: "bold #5ed",
  36. Name.Label: "bold #970",
  37. Name.Entity: "#800",
  38. Name.Attribute: "#007",
  39. Name.Tag: "#070",
  40. Name.Decorator: "bold #555",
  41. String: "bg:#e0e0ff",
  42. String.Char: "#88F bg:",
  43. String.Doc: "#D42 bg:",
  44. String.Interpol: "bg:#eee",
  45. String.Escape: "bold #666",
  46. String.Regex: "bg:#e0e0ff #000",
  47. String.Symbol: "#fc8 bg:",
  48. String.Other: "#f88",
  49. Number: "bold #60E",
  50. Number.Integer: "bold #66f",
  51. Number.Float: "bold #60E",
  52. Number.Hex: "bold #058",
  53. Number.Oct: "bold #40E",
  54. Generic.Heading: "bold #000080",
  55. Generic.Subheading: "bold #800080",
  56. Generic.Deleted: "#A00000",
  57. Generic.Inserted: "#00A000",
  58. Generic.Error: "#FF0000",
  59. Generic.Emph: "italic",
  60. Generic.Strong: "bold",
  61. Generic.Prompt: "bold #c65d09",
  62. Generic.Output: "#888",
  63. Generic.Traceback: "#04D",
  64. Error: "#F00 bg:#FAA"
  65. }