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.

friendly.go 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package styles
  2. import (
  3. "github.com/alecthomas/chroma"
  4. )
  5. // Friendly style.
  6. var Friendly = Register(chroma.MustNewStyle("friendly", chroma.StyleEntries{
  7. chroma.TextWhitespace: "#bbbbbb",
  8. chroma.Comment: "italic #60a0b0",
  9. chroma.CommentPreproc: "noitalic #007020",
  10. chroma.CommentSpecial: "noitalic bg:#fff0f0",
  11. chroma.Keyword: "bold #007020",
  12. chroma.KeywordPseudo: "nobold",
  13. chroma.KeywordType: "nobold #902000",
  14. chroma.Operator: "#666666",
  15. chroma.OperatorWord: "bold #007020",
  16. chroma.NameBuiltin: "#007020",
  17. chroma.NameFunction: "#06287e",
  18. chroma.NameClass: "bold #0e84b5",
  19. chroma.NameNamespace: "bold #0e84b5",
  20. chroma.NameException: "#007020",
  21. chroma.NameVariable: "#bb60d5",
  22. chroma.NameConstant: "#60add5",
  23. chroma.NameLabel: "bold #002070",
  24. chroma.NameEntity: "bold #d55537",
  25. chroma.NameAttribute: "#4070a0",
  26. chroma.NameTag: "bold #062873",
  27. chroma.NameDecorator: "bold #555555",
  28. chroma.LiteralString: "#4070a0",
  29. chroma.LiteralStringDoc: "italic",
  30. chroma.LiteralStringInterpol: "italic #70a0d0",
  31. chroma.LiteralStringEscape: "bold #4070a0",
  32. chroma.LiteralStringRegex: "#235388",
  33. chroma.LiteralStringSymbol: "#517918",
  34. chroma.LiteralStringOther: "#c65d09",
  35. chroma.LiteralNumber: "#40a070",
  36. chroma.GenericHeading: "bold #000080",
  37. chroma.GenericSubheading: "bold #800080",
  38. chroma.GenericDeleted: "#A00000",
  39. chroma.GenericInserted: "#00A000",
  40. chroma.GenericError: "#FF0000",
  41. chroma.GenericEmph: "italic",
  42. chroma.GenericStrong: "bold",
  43. chroma.GenericPrompt: "bold #c65d09",
  44. chroma.GenericOutput: "#888",
  45. chroma.GenericTraceback: "#04D",
  46. chroma.GenericUnderline: "underline",
  47. chroma.Error: "border:#FF0000",
  48. chroma.Background: " bg:#f0f0f0",
  49. }))