66
|
1 package styles
|
|
2
|
|
3 import (
|
|
4 "github.com/alecthomas/chroma/v2"
|
|
5 )
|
|
6
|
|
7 // RainbowDash style.
|
|
8 var RainbowDash = Register(chroma.MustNewStyle("rainbow_dash", chroma.StyleEntries{
|
|
9 chroma.Comment: "italic #0080ff",
|
|
10 chroma.CommentPreproc: "noitalic",
|
|
11 chroma.CommentSpecial: "bold",
|
|
12 chroma.Error: "bg:#cc0000 #ffffff",
|
|
13 chroma.GenericDeleted: "border:#c5060b bg:#ffcccc",
|
|
14 chroma.GenericEmph: "italic",
|
|
15 chroma.GenericError: "#ff0000",
|
|
16 chroma.GenericHeading: "bold #2c5dcd",
|
|
17 chroma.GenericInserted: "border:#00cc00 bg:#ccffcc",
|
|
18 chroma.GenericOutput: "#aaaaaa",
|
|
19 chroma.GenericPrompt: "bold #2c5dcd",
|
|
20 chroma.GenericStrong: "bold",
|
|
21 chroma.GenericSubheading: "bold #2c5dcd",
|
|
22 chroma.GenericTraceback: "#c5060b",
|
|
23 chroma.GenericUnderline: "underline",
|
|
24 chroma.Keyword: "bold #2c5dcd",
|
|
25 chroma.KeywordPseudo: "nobold",
|
|
26 chroma.KeywordType: "#5918bb",
|
|
27 chroma.NameAttribute: "italic #2c5dcd",
|
|
28 chroma.NameBuiltin: "bold #5918bb",
|
|
29 chroma.NameClass: "underline",
|
|
30 chroma.NameConstant: "#318495",
|
|
31 chroma.NameDecorator: "bold #ff8000",
|
|
32 chroma.NameEntity: "bold #5918bb",
|
|
33 chroma.NameException: "bold #5918bb",
|
|
34 chroma.NameFunction: "bold #ff8000",
|
|
35 chroma.NameTag: "bold #2c5dcd",
|
|
36 chroma.LiteralNumber: "bold #5918bb",
|
|
37 chroma.Operator: "#2c5dcd",
|
|
38 chroma.OperatorWord: "bold",
|
|
39 chroma.LiteralString: "#00cc66",
|
|
40 chroma.LiteralStringDoc: "italic",
|
|
41 chroma.LiteralStringEscape: "bold #c5060b",
|
|
42 chroma.LiteralStringOther: "#318495",
|
|
43 chroma.LiteralStringSymbol: "bold #c5060b",
|
|
44 chroma.Text: "#4d4d4d",
|
|
45 chroma.TextWhitespace: "#cbcbcb",
|
|
46 chroma.Background: " bg:#ffffff",
|
|
47 }))
|