...
1 package styles
2
3 import (
4 "github.com/alecthomas/chroma"
5 )
6
7
8 var Autumn = Register(chroma.MustNewStyle("autumn", chroma.StyleEntries{
9 chroma.TextWhitespace: "#bbbbbb",
10 chroma.Comment: "italic #aaaaaa",
11 chroma.CommentPreproc: "noitalic #4c8317",
12 chroma.CommentSpecial: "italic #0000aa",
13 chroma.Keyword: "#0000aa",
14 chroma.KeywordType: "#00aaaa",
15 chroma.OperatorWord: "#0000aa",
16 chroma.NameBuiltin: "#00aaaa",
17 chroma.NameFunction: "#00aa00",
18 chroma.NameClass: "underline #00aa00",
19 chroma.NameNamespace: "underline #00aaaa",
20 chroma.NameVariable: "#aa0000",
21 chroma.NameConstant: "#aa0000",
22 chroma.NameEntity: "bold #800",
23 chroma.NameAttribute: "#1e90ff",
24 chroma.NameTag: "bold #1e90ff",
25 chroma.NameDecorator: "#888888",
26 chroma.LiteralString: "#aa5500",
27 chroma.LiteralStringSymbol: "#0000aa",
28 chroma.LiteralStringRegex: "#009999",
29 chroma.LiteralNumber: "#009999",
30 chroma.GenericHeading: "bold #000080",
31 chroma.GenericSubheading: "bold #800080",
32 chroma.GenericDeleted: "#aa0000",
33 chroma.GenericInserted: "#00aa00",
34 chroma.GenericError: "#aa0000",
35 chroma.GenericEmph: "italic",
36 chroma.GenericStrong: "bold",
37 chroma.GenericPrompt: "#555555",
38 chroma.GenericOutput: "#888888",
39 chroma.GenericTraceback: "#aa0000",
40 chroma.GenericUnderline: "underline",
41 chroma.Error: "#F00 bg:#FAA",
42 chroma.Background: " bg:#ffffff",
43 }))
44
View as plain text