...
1 package styles
2
3 import (
4 "github.com/alecthomas/chroma"
5 )
6
7
8 var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
9 chroma.CommentMultiline: "italic #999988",
10 chroma.CommentPreproc: "bold #999999",
11 chroma.CommentSingle: "italic #999988",
12 chroma.CommentSpecial: "bold italic #999999",
13 chroma.Comment: "italic #999988",
14 chroma.Error: "bg:#e3d2d2 #a61717",
15 chroma.GenericDeleted: "bg:#ffdddd #000000",
16 chroma.GenericEmph: "italic #000000",
17 chroma.GenericError: "#aa0000",
18 chroma.GenericHeading: "#999999",
19 chroma.GenericInserted: "bg:#ddffdd #000000",
20 chroma.GenericOutput: "#888888",
21 chroma.GenericPrompt: "#555555",
22 chroma.GenericStrong: "bold",
23 chroma.GenericSubheading: "#aaaaaa",
24 chroma.GenericTraceback: "#aa0000",
25 chroma.GenericUnderline: "underline",
26 chroma.KeywordType: "bold #445588",
27 chroma.Keyword: "bold #000000",
28 chroma.LiteralNumber: "#009999",
29 chroma.LiteralStringRegex: "#009926",
30 chroma.LiteralStringSymbol: "#990073",
31 chroma.LiteralString: "#d14",
32 chroma.NameAttribute: "#008080",
33 chroma.NameBuiltinPseudo: "#999999",
34 chroma.NameBuiltin: "#0086B3",
35 chroma.NameClass: "bold #445588",
36 chroma.NameConstant: "#008080",
37 chroma.NameDecorator: "bold #3c5d5d",
38 chroma.NameEntity: "#800080",
39 chroma.NameException: "bold #990000",
40 chroma.NameFunction: "bold #990000",
41 chroma.NameLabel: "bold #990000",
42 chroma.NameNamespace: "#555555",
43 chroma.NameTag: "#000080",
44 chroma.NameVariableClass: "#008080",
45 chroma.NameVariableGlobal: "#008080",
46 chroma.NameVariableInstance: "#008080",
47 chroma.NameVariable: "#008080",
48 chroma.Operator: "bold #000000",
49 chroma.TextWhitespace: "#bbbbbb",
50 chroma.Background: " bg:#ffffff",
51 }))
52
View as plain text