-
-
Notifications
You must be signed in to change notification settings - Fork 399
/
bw.go
30 lines (28 loc) · 1008 Bytes
/
bw.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package styles
import (
"github.com/alecthomas/chroma"
)
// BlackWhite style.
var BlackWhite = Register(chroma.MustNewStyle("bw", chroma.StyleEntries{
chroma.Comment: "italic",
chroma.CommentPreproc: "noitalic",
chroma.Keyword: "bold",
chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "nobold",
chroma.OperatorWord: "bold",
chroma.NameClass: "bold",
chroma.NameNamespace: "bold",
chroma.NameException: "bold",
chroma.NameEntity: "bold",
chroma.NameTag: "bold",
chroma.LiteralString: "italic",
chroma.LiteralStringInterpol: "bold",
chroma.LiteralStringEscape: "bold",
chroma.GenericHeading: "bold",
chroma.GenericSubheading: "bold",
chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold",
chroma.Error: "border:#FF0000",
chroma.Background: " bg:#ffffff",
}))