murphy.py 2.7 KB

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