* testing code highlight with bfchroma render * add bfchroma vendoring * render code htm with classes * adjust bfchroma test cases inside formatter * go mod tidy * fix markdown code render tests * adjust comment text sanitizer to permit code HTML classes * go mod tidy * add chroma classes list regexp * unify gitignore entries style Co-authored-by: Umputun <umputun@gmail.com>
19 lines
464 B
Go
19 lines
464 B
Go
package styles
|
|
|
|
import (
|
|
"github.com/alecthomas/chroma"
|
|
)
|
|
|
|
// Rrt style.
|
|
var Rrt = Register(chroma.MustNewStyle("rrt", chroma.StyleEntries{
|
|
chroma.Comment: "#00ff00",
|
|
chroma.NameFunction: "#ffff00",
|
|
chroma.NameVariable: "#eedd82",
|
|
chroma.NameConstant: "#7fffd4",
|
|
chroma.Keyword: "#ff0000",
|
|
chroma.CommentPreproc: "#e5e5e5",
|
|
chroma.LiteralString: "#87ceeb",
|
|
chroma.KeywordType: "#ee82ee",
|
|
chroma.Background: " bg:#000000",
|
|
}))
|