emacs.go

 1package styles
 2
 3import (
 4	"github.com/alecthomas/chroma"
 5)
 6
 7// Emacs style.
 8var Emacs = Register(chroma.MustNewStyle("emacs", chroma.StyleEntries{
 9	chroma.TextWhitespace:        "#bbbbbb",
10	chroma.Comment:               "italic #008800",
11	chroma.CommentPreproc:        "noitalic",
12	chroma.CommentSpecial:        "noitalic bold",
13	chroma.Keyword:               "bold #AA22FF",
14	chroma.KeywordPseudo:         "nobold",
15	chroma.KeywordType:           "bold #00BB00",
16	chroma.Operator:              "#666666",
17	chroma.OperatorWord:          "bold #AA22FF",
18	chroma.NameBuiltin:           "#AA22FF",
19	chroma.NameFunction:          "#00A000",
20	chroma.NameClass:             "#0000FF",
21	chroma.NameNamespace:         "bold #0000FF",
22	chroma.NameException:         "bold #D2413A",
23	chroma.NameVariable:          "#B8860B",
24	chroma.NameConstant:          "#880000",
25	chroma.NameLabel:             "#A0A000",
26	chroma.NameEntity:            "bold #999999",
27	chroma.NameAttribute:         "#BB4444",
28	chroma.NameTag:               "bold #008000",
29	chroma.NameDecorator:         "#AA22FF",
30	chroma.LiteralString:         "#BB4444",
31	chroma.LiteralStringDoc:      "italic",
32	chroma.LiteralStringInterpol: "bold #BB6688",
33	chroma.LiteralStringEscape:   "bold #BB6622",
34	chroma.LiteralStringRegex:    "#BB6688",
35	chroma.LiteralStringSymbol:   "#B8860B",
36	chroma.LiteralStringOther:    "#008000",
37	chroma.LiteralNumber:         "#666666",
38	chroma.GenericHeading:        "bold #000080",
39	chroma.GenericSubheading:     "bold #800080",
40	chroma.GenericDeleted:        "#A00000",
41	chroma.GenericInserted:       "#00A000",
42	chroma.GenericError:          "#FF0000",
43	chroma.GenericEmph:           "italic",
44	chroma.GenericStrong:         "bold",
45	chroma.GenericPrompt:         "bold #000080",
46	chroma.GenericOutput:         "#888",
47	chroma.GenericTraceback:      "#04D",
48	chroma.GenericUnderline:      "underline",
49	chroma.Error:                 "border:#FF0000",
50	chroma.Background:            " bg:#f8f8f8",
51}))