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.

pastie.go 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package styles
  2. import (
  3. "github.com/alecthomas/chroma"
  4. )
  5. // Pastie style.
  6. var Pastie = Register(chroma.MustNewStyle("pastie", chroma.StyleEntries{
  7. chroma.TextWhitespace: "#bbbbbb",
  8. chroma.Comment: "#888888",
  9. chroma.CommentPreproc: "bold #cc0000",
  10. chroma.CommentSpecial: "bg:#fff0f0 bold #cc0000",
  11. chroma.LiteralString: "bg:#fff0f0 #dd2200",
  12. chroma.LiteralStringRegex: "bg:#fff0ff #008800",
  13. chroma.LiteralStringOther: "bg:#f0fff0 #22bb22",
  14. chroma.LiteralStringSymbol: "#aa6600",
  15. chroma.LiteralStringInterpol: "#3333bb",
  16. chroma.LiteralStringEscape: "#0044dd",
  17. chroma.OperatorWord: "#008800",
  18. chroma.Keyword: "bold #008800",
  19. chroma.KeywordPseudo: "nobold",
  20. chroma.KeywordType: "#888888",
  21. chroma.NameClass: "bold #bb0066",
  22. chroma.NameException: "bold #bb0066",
  23. chroma.NameFunction: "bold #0066bb",
  24. chroma.NameProperty: "bold #336699",
  25. chroma.NameNamespace: "bold #bb0066",
  26. chroma.NameBuiltin: "#003388",
  27. chroma.NameVariable: "#336699",
  28. chroma.NameVariableClass: "#336699",
  29. chroma.NameVariableInstance: "#3333bb",
  30. chroma.NameVariableGlobal: "#dd7700",
  31. chroma.NameConstant: "bold #003366",
  32. chroma.NameTag: "bold #bb0066",
  33. chroma.NameAttribute: "#336699",
  34. chroma.NameDecorator: "#555555",
  35. chroma.NameLabel: "italic #336699",
  36. chroma.LiteralNumber: "bold #0000DD",
  37. chroma.GenericHeading: "#333",
  38. chroma.GenericSubheading: "#666",
  39. chroma.GenericDeleted: "bg:#ffdddd #000000",
  40. chroma.GenericInserted: "bg:#ddffdd #000000",
  41. chroma.GenericError: "#aa0000",
  42. chroma.GenericEmph: "italic",
  43. chroma.GenericStrong: "bold",
  44. chroma.GenericPrompt: "#555555",
  45. chroma.GenericOutput: "#888888",
  46. chroma.GenericTraceback: "#aa0000",
  47. chroma.GenericUnderline: "underline",
  48. chroma.Error: "bg:#e3d2d2 #a61717",
  49. chroma.Background: " bg:#ffffff",
  50. }))