You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

colorful.go 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package styles
  2. import (
  3. "github.com/alecthomas/chroma"
  4. )
  5. // Colorful style.
  6. var Colorful = Register(chroma.MustNewStyle("colorful", chroma.StyleEntries{
  7. chroma.TextWhitespace: "#bbbbbb",
  8. chroma.Comment: "#888",
  9. chroma.CommentPreproc: "#579",
  10. chroma.CommentSpecial: "bold #cc0000",
  11. chroma.Keyword: "bold #080",
  12. chroma.KeywordPseudo: "#038",
  13. chroma.KeywordType: "#339",
  14. chroma.Operator: "#333",
  15. chroma.OperatorWord: "bold #000",
  16. chroma.NameBuiltin: "#007020",
  17. chroma.NameFunction: "bold #06B",
  18. chroma.NameClass: "bold #B06",
  19. chroma.NameNamespace: "bold #0e84b5",
  20. chroma.NameException: "bold #F00",
  21. chroma.NameVariable: "#963",
  22. chroma.NameVariableInstance: "#33B",
  23. chroma.NameVariableClass: "#369",
  24. chroma.NameVariableGlobal: "bold #d70",
  25. chroma.NameConstant: "bold #036",
  26. chroma.NameLabel: "bold #970",
  27. chroma.NameEntity: "bold #800",
  28. chroma.NameAttribute: "#00C",
  29. chroma.NameTag: "#070",
  30. chroma.NameDecorator: "bold #555",
  31. chroma.LiteralString: "bg:#fff0f0",
  32. chroma.LiteralStringChar: "#04D bg:",
  33. chroma.LiteralStringDoc: "#D42 bg:",
  34. chroma.LiteralStringInterpol: "bg:#eee",
  35. chroma.LiteralStringEscape: "bold #666",
  36. chroma.LiteralStringRegex: "bg:#fff0ff #000",
  37. chroma.LiteralStringSymbol: "#A60 bg:",
  38. chroma.LiteralStringOther: "#D20",
  39. chroma.LiteralNumber: "bold #60E",
  40. chroma.LiteralNumberInteger: "bold #00D",
  41. chroma.LiteralNumberFloat: "bold #60E",
  42. chroma.LiteralNumberHex: "bold #058",
  43. chroma.LiteralNumberOct: "bold #40E",
  44. chroma.GenericHeading: "bold #000080",
  45. chroma.GenericSubheading: "bold #800080",
  46. chroma.GenericDeleted: "#A00000",
  47. chroma.GenericInserted: "#00A000",
  48. chroma.GenericError: "#FF0000",
  49. chroma.GenericEmph: "italic",
  50. chroma.GenericStrong: "bold",
  51. chroma.GenericPrompt: "bold #c65d09",
  52. chroma.GenericOutput: "#888",
  53. chroma.GenericTraceback: "#04D",
  54. chroma.GenericUnderline: "underline",
  55. chroma.Error: "#F00 bg:#FAA",
  56. chroma.Background: " bg:#ffffff",
  57. }))