1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-03 00:37:01 +02:00

Run gofmt -s over the codebase.

This commit is contained in:
Alec Thomas
2017-09-26 22:05:44 +10:00
parent c39abfb916
commit bc2d6680e4
33 changed files with 1007 additions and 1007 deletions

View File

@ -9,7 +9,7 @@ import (
func TestCoalesce(t *testing.T) { func TestCoalesce(t *testing.T) {
lexer := Coalesce(MustNewLexer(nil, Rules{ lexer := Coalesce(MustNewLexer(nil, Rules{
"root": []Rule{ "root": []Rule{
Rule{`[!@#$%^&*()]`, Punctuation, nil}, {`[!@#$%^&*()]`, Punctuation, nil},
}, },
})) }))
actual, err := Tokenise(lexer, nil, "!@#$") actual, err := Tokenise(lexer, nil, "!@#$")

View File

@ -36,14 +36,14 @@ func TestSplitTokensIntoLines(t *testing.T) {
{Value: " world\nwhat?\n", Type: chroma.NameKeyword}, {Value: " world\nwhat?\n", Type: chroma.NameKeyword},
} }
expected := [][]*chroma.Token{ expected := [][]*chroma.Token{
[]*chroma.Token{ {
{Type: chroma.NameKeyword, Value: "hello"}, {Type: chroma.NameKeyword, Value: "hello"},
{Type: chroma.NameKeyword, Value: " world\n"}, {Type: chroma.NameKeyword, Value: " world\n"},
}, },
[]*chroma.Token{ {
{Type: chroma.NameKeyword, Value: "what?\n"}, {Type: chroma.NameKeyword, Value: "what?\n"},
}, },
[]*chroma.Token{ {
{Type: chroma.NameKeyword}, {Type: chroma.NameKeyword},
}, },
} }

View File

@ -16,7 +16,7 @@ type ttyTable struct {
var c = chroma.MustParseColour var c = chroma.MustParseColour
var ttyTables = map[int]*ttyTable{ var ttyTables = map[int]*ttyTable{
8: &ttyTable{ 8: {
foreground: map[chroma.Colour]string{ foreground: map[chroma.Colour]string{
c("#000000"): "\033[30m", c("#7f0000"): "\033[31m", c("#007f00"): "\033[32m", c("#7f7fe0"): "\033[33m", c("#000000"): "\033[30m", c("#7f0000"): "\033[31m", c("#007f00"): "\033[32m", c("#7f7fe0"): "\033[33m",
c("#00007f"): "\033[34m", c("#7f007f"): "\033[35m", c("#007f7f"): "\033[36m", c("#e5e5e5"): "\033[37m", c("#00007f"): "\033[34m", c("#7f007f"): "\033[35m", c("#007f7f"): "\033[36m", c("#e5e5e5"): "\033[37m",
@ -30,7 +30,7 @@ var ttyTables = map[int]*ttyTable{
c("#0000ff"): "\033[104m", c("#ff00ff"): "\033[105m", c("#00ffff"): "\033[106m", c("#ffffff"): "\033[107m", c("#0000ff"): "\033[104m", c("#ff00ff"): "\033[105m", c("#00ffff"): "\033[106m", c("#ffffff"): "\033[107m",
}, },
}, },
256: &ttyTable{ 256: {
foreground: map[chroma.Colour]string{ foreground: map[chroma.Colour]string{
c("#000000"): "\033[38;5;0m", c("#800000"): "\033[38;5;1m", c("#008000"): "\033[38;5;2m", c("#808000"): "\033[38;5;3m", c("#000000"): "\033[38;5;0m", c("#800000"): "\033[38;5;1m", c("#008000"): "\033[38;5;2m", c("#808000"): "\033[38;5;3m",
c("#000080"): "\033[38;5;4m", c("#800080"): "\033[38;5;5m", c("#008080"): "\033[38;5;6m", c("#c0c0c0"): "\033[38;5;7m", c("#000080"): "\033[38;5;4m", c("#800080"): "\033[38;5;5m", c("#008080"): "\033[38;5;6m", c("#c0c0c0"): "\033[38;5;7m",

View File

@ -1,85 +1,85 @@
package lexers package lexers
import ( import (
"strings" "strings"
. "github.com/alecthomas/chroma" // nolint . "github.com/alecthomas/chroma" // nolint
) )
// Restructuredtext lexer. // Restructuredtext lexer.
var Restructuredtext = Register(MustNewLexer( var Restructuredtext = Register(MustNewLexer(
&Config{ &Config{
Name: "reStructuredText", Name: "reStructuredText",
Aliases: []string{"rst", "rest", "restructuredtext"}, Aliases: []string{"rst", "rest", "restructuredtext"},
Filenames: []string{"*.rst", "*.rest"}, Filenames: []string{"*.rst", "*.rest"},
MimeTypes: []string{"text/x-rst", "text/prs.fallenstein.rst"}, MimeTypes: []string{"text/x-rst", "text/prs.fallenstein.rst"},
}, },
Rules{ Rules{
"root": { "root": {
{"^(=+|-+|`+|:+|\\.+|\\'+|\"+|~+|\\^+|_+|\\*+|\\++|#+)([ \\t]*\\n)(.+)(\\n)(\\1)(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text, GenericHeading, Text), nil}, {"^(=+|-+|`+|:+|\\.+|\\'+|\"+|~+|\\^+|_+|\\*+|\\++|#+)([ \\t]*\\n)(.+)(\\n)(\\1)(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text, GenericHeading, Text), nil},
{"^(\\S.*)(\\n)(={3,}|-{3,}|`{3,}|:{3,}|\\.{3,}|\\'{3,}|\"{3,}|~{3,}|\\^{3,}|_{3,}|\\*{3,}|\\+{3,}|#{3,})(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text), nil}, {"^(\\S.*)(\\n)(={3,}|-{3,}|`{3,}|:{3,}|\\.{3,}|\\'{3,}|\"{3,}|~{3,}|\\^{3,}|_{3,}|\\*{3,}|\\+{3,}|#{3,})(\\n)", ByGroups(GenericHeading, Text, GenericHeading, Text), nil},
{`^(\s*)([-*+])( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil}, {`^(\s*)([-*+])( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil},
{`^(\s*)([0-9#ivxlcmIVXLCM]+\.)( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil}, {`^(\s*)([0-9#ivxlcmIVXLCM]+\.)( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil},
{`^(\s*)(\(?[0-9#ivxlcmIVXLCM]+\))( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil}, {`^(\s*)(\(?[0-9#ivxlcmIVXLCM]+\))( .+\n(?:\1 .+\n)*)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil},
{`^(\s*)([A-Z]+\.)( .+\n(?:\1 .+\n)+)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil}, {`^(\s*)([A-Z]+\.)( .+\n(?:\1 .+\n)+)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil},
{`^(\s*)(\(?[A-Za-z]+\))( .+\n(?:\1 .+\n)+)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil}, {`^(\s*)(\(?[A-Za-z]+\))( .+\n(?:\1 .+\n)+)`, ByGroups(Text, LiteralNumber, UsingSelf("inline")), nil},
{`^(\s*)(\|)( .+\n(?:\| .+\n)*)`, ByGroups(Text, Operator, UsingSelf("inline")), nil}, {`^(\s*)(\|)( .+\n(?:\| .+\n)*)`, ByGroups(Text, Operator, UsingSelf("inline")), nil},
{`^( *\.\.)(\s*)((?:source)?code(?:-block)?)(::)([ \t]*)([^\n]+)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\8.*|)\n)+)`, EmitterFunc(rstCodeBlock), nil}, {`^( *\.\.)(\s*)((?:source)?code(?:-block)?)(::)([ \t]*)([^\n]+)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\8.*|)\n)+)`, EmitterFunc(rstCodeBlock), nil},
{`^( *\.\.)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))`, ByGroups(Punctuation, Text, OperatorWord, Punctuation, Text, UsingSelf("inline")), nil}, {`^( *\.\.)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))`, ByGroups(Punctuation, Text, OperatorWord, Punctuation, Text, UsingSelf("inline")), nil},
{`^( *\.\.)(\s*)(_(?:[^:\\]|\\.)+:)(.*?)$`, ByGroups(Punctuation, Text, NameTag, UsingSelf("inline")), nil}, {`^( *\.\.)(\s*)(_(?:[^:\\]|\\.)+:)(.*?)$`, ByGroups(Punctuation, Text, NameTag, UsingSelf("inline")), nil},
{`^( *\.\.)(\s*)(\[.+\])(.*?)$`, ByGroups(Punctuation, Text, NameTag, UsingSelf("inline")), nil}, {`^( *\.\.)(\s*)(\[.+\])(.*?)$`, ByGroups(Punctuation, Text, NameTag, UsingSelf("inline")), nil},
{`^( *\.\.)(\s*)(\|.+\|)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))`, ByGroups(Punctuation, Text, NameTag, Text, OperatorWord, Punctuation, Text, UsingSelf("inline")), nil}, {`^( *\.\.)(\s*)(\|.+\|)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))`, ByGroups(Punctuation, Text, NameTag, Text, OperatorWord, Punctuation, Text, UsingSelf("inline")), nil},
{`^ *\.\..*(\n( +.*\n|\n)+)?`, CommentPreproc, nil}, {`^ *\.\..*(\n( +.*\n|\n)+)?`, CommentPreproc, nil},
{`^( *)(:[a-zA-Z-]+:)(\s*)$`, ByGroups(Text, NameClass, Text), nil}, {`^( *)(:[a-zA-Z-]+:)(\s*)$`, ByGroups(Text, NameClass, Text), nil},
{`^( *)(:.*?:)([ \t]+)(.*?)$`, ByGroups(Text, NameClass, Text, NameFunction), nil}, {`^( *)(:.*?:)([ \t]+)(.*?)$`, ByGroups(Text, NameClass, Text, NameFunction), nil},
{`^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)`, ByGroups(UsingSelf("inline"), UsingSelf("inline")), nil}, {`^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)`, ByGroups(UsingSelf("inline"), UsingSelf("inline")), nil},
{`(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*|)\n)+)`, ByGroups(LiteralStringEscape, Text, LiteralString, LiteralString, Text, LiteralString), nil}, {`(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*|)\n)+)`, ByGroups(LiteralStringEscape, Text, LiteralString, LiteralString, Text, LiteralString), nil},
Include("inline"), Include("inline"),
}, },
"inline": { "inline": {
{`\\.`, Text, nil}, {`\\.`, Text, nil},
{"``", LiteralString, Push("literal")}, {"``", LiteralString, Push("literal")},
{"(`.+?)(<.+?>)(`__?)", ByGroups(LiteralString, LiteralStringInterpol, LiteralString), nil}, {"(`.+?)(<.+?>)(`__?)", ByGroups(LiteralString, LiteralStringInterpol, LiteralString), nil},
{"`.+?`__?", LiteralString, nil}, {"`.+?`__?", LiteralString, nil},
{"(`.+?`)(:[a-zA-Z0-9:-]+?:)?", ByGroups(NameVariable, NameAttribute), nil}, {"(`.+?`)(:[a-zA-Z0-9:-]+?:)?", ByGroups(NameVariable, NameAttribute), nil},
{"(:[a-zA-Z0-9:-]+?:)(`.+?`)", ByGroups(NameAttribute, NameVariable), nil}, {"(:[a-zA-Z0-9:-]+?:)(`.+?`)", ByGroups(NameAttribute, NameVariable), nil},
{`\*\*.+?\*\*`, GenericStrong, nil}, {`\*\*.+?\*\*`, GenericStrong, nil},
{`\*.+?\*`, GenericEmph, nil}, {`\*.+?\*`, GenericEmph, nil},
{`\[.*?\]_`, LiteralString, nil}, {`\[.*?\]_`, LiteralString, nil},
{`<.+?>`, NameTag, nil}, {`<.+?>`, NameTag, nil},
{"[^\\\\\\n\\[*`:]+", Text, nil}, {"[^\\\\\\n\\[*`:]+", Text, nil},
{`.`, Text, nil}, {`.`, Text, nil},
}, },
"literal": { "literal": {
{"[^`]+", LiteralString, nil}, {"[^`]+", LiteralString, nil},
{"``((?=$)|(?=[-/:.,; \\n\\x00\\\u2010\\\u2011\\\u2012\\\u2013\\\u2014\\\u00a0\\'\\\"\\)\\]\\}\\>\\\u2019\\\u201d\\\u00bb\\!\\?]))", LiteralString, Pop(1)}, {"``((?=$)|(?=[-/:.,; \\n\\x00\\\u2010\\\u2011\\\u2012\\\u2013\\\u2014\\\u00a0\\'\\\"\\)\\]\\}\\>\\\u2019\\\u201d\\\u00bb\\!\\?]))", LiteralString, Pop(1)},
{"`", LiteralString, nil}, {"`", LiteralString, nil},
}, },
}, },
)) ))
func rstCodeBlock(groups []string, lexer Lexer) Iterator { func rstCodeBlock(groups []string, lexer Lexer) Iterator {
iterators := []Iterator{} iterators := []Iterator{}
tokens := []*Token{ tokens := []*Token{
{Punctuation, groups[1]}, {Punctuation, groups[1]},
{Text, groups[2]}, {Text, groups[2]},
{OperatorWord, groups[3]}, {OperatorWord, groups[3]},
{Punctuation, groups[4]}, {Punctuation, groups[4]},
{Text, groups[5]}, {Text, groups[5]},
{Keyword, groups[6]}, {Keyword, groups[6]},
{Text, groups[7]}, {Text, groups[7]},
} }
code := strings.Join(groups[8:], "") code := strings.Join(groups[8:], "")
lexer = Get(groups[6]) lexer = Get(groups[6])
if lexer == nil { if lexer == nil {
tokens = append(tokens, &Token{String, code}) tokens = append(tokens, &Token{String, code})
iterators = append(iterators, Literator(tokens...)) iterators = append(iterators, Literator(tokens...))
} else { } else {
sub, err := lexer.Tokenise(nil, code) sub, err := lexer.Tokenise(nil, code)
if err != nil { if err != nil {
panic(err) panic(err)
} }
iterators = append(iterators, Literator(tokens...), sub) iterators = append(iterators, Literator(tokens...), sub)
} }
return Concaterator(iterators...) return Concaterator(iterators...)
} }

View File

@ -1,18 +1,18 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Abap style. // Abap style.
var Abap = Register(chroma.MustNewStyle("abap", chroma.StyleEntries{ var Abap = Register(chroma.MustNewStyle("abap", chroma.StyleEntries{
chroma.Comment: "italic #888", chroma.Comment: "italic #888",
chroma.CommentSpecial: "#888", chroma.CommentSpecial: "#888",
chroma.Keyword: "#00f", chroma.Keyword: "#00f",
chroma.OperatorWord: "#00f", chroma.OperatorWord: "#00f",
chroma.Name: "#000", chroma.Name: "#000",
chroma.LiteralNumber: "#3af", chroma.LiteralNumber: "#3af",
chroma.LiteralString: "#5a2", chroma.LiteralString: "#5a2",
chroma.Error: "#F00", chroma.Error: "#F00",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,25 +1,25 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Algol style. // Algol style.
var Algol = Register(chroma.MustNewStyle("algol", chroma.StyleEntries{ var Algol = Register(chroma.MustNewStyle("algol", chroma.StyleEntries{
chroma.Comment: "italic #888", chroma.Comment: "italic #888",
chroma.CommentPreproc: "bold noitalic #888", chroma.CommentPreproc: "bold noitalic #888",
chroma.CommentSpecial: "bold noitalic #888", chroma.CommentSpecial: "bold noitalic #888",
chroma.Keyword: "underline bold", chroma.Keyword: "underline bold",
chroma.KeywordDeclaration: "italic", chroma.KeywordDeclaration: "italic",
chroma.NameBuiltin: "bold italic", chroma.NameBuiltin: "bold italic",
chroma.NameBuiltinPseudo: "bold italic", chroma.NameBuiltinPseudo: "bold italic",
chroma.NameNamespace: "bold italic #666", chroma.NameNamespace: "bold italic #666",
chroma.NameClass: "bold italic #666", chroma.NameClass: "bold italic #666",
chroma.NameFunction: "bold italic #666", chroma.NameFunction: "bold italic #666",
chroma.NameVariable: "bold italic #666", chroma.NameVariable: "bold italic #666",
chroma.NameConstant: "bold italic #666", chroma.NameConstant: "bold italic #666",
chroma.OperatorWord: "bold", chroma.OperatorWord: "bold",
chroma.LiteralString: "italic #666", chroma.LiteralString: "italic #666",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,25 +1,25 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Algol_Nu style. // Algol_Nu style.
var Algol_Nu = Register(chroma.MustNewStyle("algol_nu", chroma.StyleEntries{ var Algol_Nu = Register(chroma.MustNewStyle("algol_nu", chroma.StyleEntries{
chroma.Comment: "italic #888", chroma.Comment: "italic #888",
chroma.CommentPreproc: "bold noitalic #888", chroma.CommentPreproc: "bold noitalic #888",
chroma.CommentSpecial: "bold noitalic #888", chroma.CommentSpecial: "bold noitalic #888",
chroma.Keyword: "bold", chroma.Keyword: "bold",
chroma.KeywordDeclaration: "italic", chroma.KeywordDeclaration: "italic",
chroma.NameBuiltin: "bold italic", chroma.NameBuiltin: "bold italic",
chroma.NameBuiltinPseudo: "bold italic", chroma.NameBuiltinPseudo: "bold italic",
chroma.NameNamespace: "bold italic #666", chroma.NameNamespace: "bold italic #666",
chroma.NameClass: "bold italic #666", chroma.NameClass: "bold italic #666",
chroma.NameFunction: "bold italic #666", chroma.NameFunction: "bold italic #666",
chroma.NameVariable: "bold italic #666", chroma.NameVariable: "bold italic #666",
chroma.NameConstant: "bold italic #666", chroma.NameConstant: "bold italic #666",
chroma.OperatorWord: "bold", chroma.OperatorWord: "bold",
chroma.LiteralString: "italic #666", chroma.LiteralString: "italic #666",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,25 +1,25 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Arduino style. // Arduino style.
var Arduino = Register(chroma.MustNewStyle("arduino", chroma.StyleEntries{ var Arduino = Register(chroma.MustNewStyle("arduino", chroma.StyleEntries{
chroma.Error: "#a61717", chroma.Error: "#a61717",
chroma.Comment: "#95a5a6", chroma.Comment: "#95a5a6",
chroma.CommentPreproc: "#728E00", chroma.CommentPreproc: "#728E00",
chroma.Keyword: "#728E00", chroma.Keyword: "#728E00",
chroma.KeywordConstant: "#00979D", chroma.KeywordConstant: "#00979D",
chroma.KeywordPseudo: "#00979D", chroma.KeywordPseudo: "#00979D",
chroma.KeywordReserved: "#00979D", chroma.KeywordReserved: "#00979D",
chroma.KeywordType: "#00979D", chroma.KeywordType: "#00979D",
chroma.Operator: "#728E00", chroma.Operator: "#728E00",
chroma.Name: "#434f54", chroma.Name: "#434f54",
chroma.NameBuiltin: "#728E00", chroma.NameBuiltin: "#728E00",
chroma.NameFunction: "#D35400", chroma.NameFunction: "#D35400",
chroma.NameOther: "#728E00", chroma.NameOther: "#728E00",
chroma.LiteralNumber: "#8A7B52", chroma.LiteralNumber: "#8A7B52",
chroma.LiteralString: "#7F8C8D", chroma.LiteralString: "#7F8C8D",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,42 +1,42 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Autumn style. // Autumn style.
var Autumn = Register(chroma.MustNewStyle("autumn", chroma.StyleEntries{ var Autumn = Register(chroma.MustNewStyle("autumn", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #aaaaaa", chroma.Comment: "italic #aaaaaa",
chroma.CommentPreproc: "noitalic #4c8317", chroma.CommentPreproc: "noitalic #4c8317",
chroma.CommentSpecial: "italic #0000aa", chroma.CommentSpecial: "italic #0000aa",
chroma.Keyword: "#0000aa", chroma.Keyword: "#0000aa",
chroma.KeywordType: "#00aaaa", chroma.KeywordType: "#00aaaa",
chroma.OperatorWord: "#0000aa", chroma.OperatorWord: "#0000aa",
chroma.NameBuiltin: "#00aaaa", chroma.NameBuiltin: "#00aaaa",
chroma.NameFunction: "#00aa00", chroma.NameFunction: "#00aa00",
chroma.NameClass: "underline #00aa00", chroma.NameClass: "underline #00aa00",
chroma.NameNamespace: "underline #00aaaa", chroma.NameNamespace: "underline #00aaaa",
chroma.NameVariable: "#aa0000", chroma.NameVariable: "#aa0000",
chroma.NameConstant: "#aa0000", chroma.NameConstant: "#aa0000",
chroma.NameEntity: "bold #800", chroma.NameEntity: "bold #800",
chroma.NameAttribute: "#1e90ff", chroma.NameAttribute: "#1e90ff",
chroma.NameTag: "bold #1e90ff", chroma.NameTag: "bold #1e90ff",
chroma.NameDecorator: "#888888", chroma.NameDecorator: "#888888",
chroma.LiteralString: "#aa5500", chroma.LiteralString: "#aa5500",
chroma.LiteralStringSymbol: "#0000aa", chroma.LiteralStringSymbol: "#0000aa",
chroma.LiteralStringRegex: "#009999", chroma.LiteralStringRegex: "#009999",
chroma.LiteralNumber: "#009999", chroma.LiteralNumber: "#009999",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#aa0000", chroma.GenericDeleted: "#aa0000",
chroma.GenericInserted: "#00aa00", chroma.GenericInserted: "#00aa00",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.Error: "#F00 bg:#FAA", chroma.Error: "#F00 bg:#FAA",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,32 +1,32 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Borland style. // Borland style.
var Borland = Register(chroma.MustNewStyle("borland", chroma.StyleEntries{ var Borland = Register(chroma.MustNewStyle("borland", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #008800", chroma.Comment: "italic #008800",
chroma.CommentPreproc: "noitalic #008080", chroma.CommentPreproc: "noitalic #008080",
chroma.CommentSpecial: "noitalic bold", chroma.CommentSpecial: "noitalic bold",
chroma.LiteralString: "#0000FF", chroma.LiteralString: "#0000FF",
chroma.LiteralStringChar: "#800080", chroma.LiteralStringChar: "#800080",
chroma.LiteralNumber: "#0000FF", chroma.LiteralNumber: "#0000FF",
chroma.Keyword: "bold #000080", chroma.Keyword: "bold #000080",
chroma.OperatorWord: "bold", chroma.OperatorWord: "bold",
chroma.NameTag: "bold #000080", chroma.NameTag: "bold #000080",
chroma.NameAttribute: "#FF0000", chroma.NameAttribute: "#FF0000",
chroma.GenericHeading: "#999999", chroma.GenericHeading: "#999999",
chroma.GenericSubheading: "#aaaaaa", chroma.GenericSubheading: "#aaaaaa",
chroma.GenericDeleted: "bg:#ffdddd #000000", chroma.GenericDeleted: "bg:#ffdddd #000000",
chroma.GenericInserted: "bg:#ddffdd #000000", chroma.GenericInserted: "bg:#ddffdd #000000",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,30 +1,30 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// BlackWhite style. // BlackWhite style.
var BlackWhite = Register(chroma.MustNewStyle("bw", chroma.StyleEntries{ var BlackWhite = Register(chroma.MustNewStyle("bw", chroma.StyleEntries{
chroma.Comment: "italic", chroma.Comment: "italic",
chroma.CommentPreproc: "noitalic", chroma.CommentPreproc: "noitalic",
chroma.Keyword: "bold", chroma.Keyword: "bold",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "nobold", chroma.KeywordType: "nobold",
chroma.OperatorWord: "bold", chroma.OperatorWord: "bold",
chroma.NameClass: "bold", chroma.NameClass: "bold",
chroma.NameNamespace: "bold", chroma.NameNamespace: "bold",
chroma.NameException: "bold", chroma.NameException: "bold",
chroma.NameEntity: "bold", chroma.NameEntity: "bold",
chroma.NameTag: "bold", chroma.NameTag: "bold",
chroma.LiteralString: "italic", chroma.LiteralString: "italic",
chroma.LiteralStringInterpol: "bold", chroma.LiteralStringInterpol: "bold",
chroma.LiteralStringEscape: "bold", chroma.LiteralStringEscape: "bold",
chroma.GenericHeading: "bold", chroma.GenericHeading: "bold",
chroma.GenericSubheading: "bold", chroma.GenericSubheading: "bold",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold", chroma.GenericPrompt: "bold",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,58 +1,58 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Colorful style. // Colorful style.
var Colorful = Register(chroma.MustNewStyle("colorful", chroma.StyleEntries{ var Colorful = Register(chroma.MustNewStyle("colorful", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "#888", chroma.Comment: "#888",
chroma.CommentPreproc: "#579", chroma.CommentPreproc: "#579",
chroma.CommentSpecial: "bold #cc0000", chroma.CommentSpecial: "bold #cc0000",
chroma.Keyword: "bold #080", chroma.Keyword: "bold #080",
chroma.KeywordPseudo: "#038", chroma.KeywordPseudo: "#038",
chroma.KeywordType: "#339", chroma.KeywordType: "#339",
chroma.Operator: "#333", chroma.Operator: "#333",
chroma.OperatorWord: "bold #000", chroma.OperatorWord: "bold #000",
chroma.NameBuiltin: "#007020", chroma.NameBuiltin: "#007020",
chroma.NameFunction: "bold #06B", chroma.NameFunction: "bold #06B",
chroma.NameClass: "bold #B06", chroma.NameClass: "bold #B06",
chroma.NameNamespace: "bold #0e84b5", chroma.NameNamespace: "bold #0e84b5",
chroma.NameException: "bold #F00", chroma.NameException: "bold #F00",
chroma.NameVariable: "#963", chroma.NameVariable: "#963",
chroma.NameVariableInstance: "#33B", chroma.NameVariableInstance: "#33B",
chroma.NameVariableClass: "#369", chroma.NameVariableClass: "#369",
chroma.NameVariableGlobal: "bold #d70", chroma.NameVariableGlobal: "bold #d70",
chroma.NameConstant: "bold #036", chroma.NameConstant: "bold #036",
chroma.NameLabel: "bold #970", chroma.NameLabel: "bold #970",
chroma.NameEntity: "bold #800", chroma.NameEntity: "bold #800",
chroma.NameAttribute: "#00C", chroma.NameAttribute: "#00C",
chroma.NameTag: "#070", chroma.NameTag: "#070",
chroma.NameDecorator: "bold #555", chroma.NameDecorator: "bold #555",
chroma.LiteralString: "bg:#fff0f0", chroma.LiteralString: "bg:#fff0f0",
chroma.LiteralStringChar: "#04D bg:", chroma.LiteralStringChar: "#04D bg:",
chroma.LiteralStringDoc: "#D42 bg:", chroma.LiteralStringDoc: "#D42 bg:",
chroma.LiteralStringInterpol: "bg:#eee", chroma.LiteralStringInterpol: "bg:#eee",
chroma.LiteralStringEscape: "bold #666", chroma.LiteralStringEscape: "bold #666",
chroma.LiteralStringRegex: "bg:#fff0ff #000", chroma.LiteralStringRegex: "bg:#fff0ff #000",
chroma.LiteralStringSymbol: "#A60 bg:", chroma.LiteralStringSymbol: "#A60 bg:",
chroma.LiteralStringOther: "#D20", chroma.LiteralStringOther: "#D20",
chroma.LiteralNumber: "bold #60E", chroma.LiteralNumber: "bold #60E",
chroma.LiteralNumberInteger: "bold #00D", chroma.LiteralNumberInteger: "bold #00D",
chroma.LiteralNumberFloat: "bold #60E", chroma.LiteralNumberFloat: "bold #60E",
chroma.LiteralNumberHex: "bold #058", chroma.LiteralNumberHex: "bold #058",
chroma.LiteralNumberOct: "bold #40E", chroma.LiteralNumberOct: "bold #40E",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#A00000", chroma.GenericDeleted: "#A00000",
chroma.GenericInserted: "#00A000", chroma.GenericInserted: "#00A000",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #c65d09", chroma.GenericPrompt: "bold #c65d09",
chroma.GenericOutput: "#888", chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D", chroma.GenericTraceback: "#04D",
chroma.Error: "#F00 bg:#FAA", chroma.Error: "#F00 bg:#FAA",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,50 +1,50 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Emacs style. // Emacs style.
var Emacs = Register(chroma.MustNewStyle("emacs", chroma.StyleEntries{ var Emacs = Register(chroma.MustNewStyle("emacs", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #008800", chroma.Comment: "italic #008800",
chroma.CommentPreproc: "noitalic", chroma.CommentPreproc: "noitalic",
chroma.CommentSpecial: "noitalic bold", chroma.CommentSpecial: "noitalic bold",
chroma.Keyword: "bold #AA22FF", chroma.Keyword: "bold #AA22FF",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "bold #00BB00", chroma.KeywordType: "bold #00BB00",
chroma.Operator: "#666666", chroma.Operator: "#666666",
chroma.OperatorWord: "bold #AA22FF", chroma.OperatorWord: "bold #AA22FF",
chroma.NameBuiltin: "#AA22FF", chroma.NameBuiltin: "#AA22FF",
chroma.NameFunction: "#00A000", chroma.NameFunction: "#00A000",
chroma.NameClass: "#0000FF", chroma.NameClass: "#0000FF",
chroma.NameNamespace: "bold #0000FF", chroma.NameNamespace: "bold #0000FF",
chroma.NameException: "bold #D2413A", chroma.NameException: "bold #D2413A",
chroma.NameVariable: "#B8860B", chroma.NameVariable: "#B8860B",
chroma.NameConstant: "#880000", chroma.NameConstant: "#880000",
chroma.NameLabel: "#A0A000", chroma.NameLabel: "#A0A000",
chroma.NameEntity: "bold #999999", chroma.NameEntity: "bold #999999",
chroma.NameAttribute: "#BB4444", chroma.NameAttribute: "#BB4444",
chroma.NameTag: "bold #008000", chroma.NameTag: "bold #008000",
chroma.NameDecorator: "#AA22FF", chroma.NameDecorator: "#AA22FF",
chroma.LiteralString: "#BB4444", chroma.LiteralString: "#BB4444",
chroma.LiteralStringDoc: "italic", chroma.LiteralStringDoc: "italic",
chroma.LiteralStringInterpol: "bold #BB6688", chroma.LiteralStringInterpol: "bold #BB6688",
chroma.LiteralStringEscape: "bold #BB6622", chroma.LiteralStringEscape: "bold #BB6622",
chroma.LiteralStringRegex: "#BB6688", chroma.LiteralStringRegex: "#BB6688",
chroma.LiteralStringSymbol: "#B8860B", chroma.LiteralStringSymbol: "#B8860B",
chroma.LiteralStringOther: "#008000", chroma.LiteralStringOther: "#008000",
chroma.LiteralNumber: "#666666", chroma.LiteralNumber: "#666666",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#A00000", chroma.GenericDeleted: "#A00000",
chroma.GenericInserted: "#00A000", chroma.GenericInserted: "#00A000",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #000080", chroma.GenericPrompt: "bold #000080",
chroma.GenericOutput: "#888", chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D", chroma.GenericTraceback: "#04D",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#f8f8f8", chroma.Background: " bg:#f8f8f8",
})) }))

View File

@ -1,50 +1,50 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Friendly style. // Friendly style.
var Friendly = Register(chroma.MustNewStyle("friendly", chroma.StyleEntries{ var Friendly = Register(chroma.MustNewStyle("friendly", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #60a0b0", chroma.Comment: "italic #60a0b0",
chroma.CommentPreproc: "noitalic #007020", chroma.CommentPreproc: "noitalic #007020",
chroma.CommentSpecial: "noitalic bg:#fff0f0", chroma.CommentSpecial: "noitalic bg:#fff0f0",
chroma.Keyword: "bold #007020", chroma.Keyword: "bold #007020",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "nobold #902000", chroma.KeywordType: "nobold #902000",
chroma.Operator: "#666666", chroma.Operator: "#666666",
chroma.OperatorWord: "bold #007020", chroma.OperatorWord: "bold #007020",
chroma.NameBuiltin: "#007020", chroma.NameBuiltin: "#007020",
chroma.NameFunction: "#06287e", chroma.NameFunction: "#06287e",
chroma.NameClass: "bold #0e84b5", chroma.NameClass: "bold #0e84b5",
chroma.NameNamespace: "bold #0e84b5", chroma.NameNamespace: "bold #0e84b5",
chroma.NameException: "#007020", chroma.NameException: "#007020",
chroma.NameVariable: "#bb60d5", chroma.NameVariable: "#bb60d5",
chroma.NameConstant: "#60add5", chroma.NameConstant: "#60add5",
chroma.NameLabel: "bold #002070", chroma.NameLabel: "bold #002070",
chroma.NameEntity: "bold #d55537", chroma.NameEntity: "bold #d55537",
chroma.NameAttribute: "#4070a0", chroma.NameAttribute: "#4070a0",
chroma.NameTag: "bold #062873", chroma.NameTag: "bold #062873",
chroma.NameDecorator: "bold #555555", chroma.NameDecorator: "bold #555555",
chroma.LiteralString: "#4070a0", chroma.LiteralString: "#4070a0",
chroma.LiteralStringDoc: "italic", chroma.LiteralStringDoc: "italic",
chroma.LiteralStringInterpol: "italic #70a0d0", chroma.LiteralStringInterpol: "italic #70a0d0",
chroma.LiteralStringEscape: "bold #4070a0", chroma.LiteralStringEscape: "bold #4070a0",
chroma.LiteralStringRegex: "#235388", chroma.LiteralStringRegex: "#235388",
chroma.LiteralStringSymbol: "#517918", chroma.LiteralStringSymbol: "#517918",
chroma.LiteralStringOther: "#c65d09", chroma.LiteralStringOther: "#c65d09",
chroma.LiteralNumber: "#40a070", chroma.LiteralNumber: "#40a070",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#A00000", chroma.GenericDeleted: "#A00000",
chroma.GenericInserted: "#00A000", chroma.GenericInserted: "#00A000",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #c65d09", chroma.GenericPrompt: "bold #c65d09",
chroma.GenericOutput: "#888", chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D", chroma.GenericTraceback: "#04D",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#f0f0f0", chroma.Background: " bg:#f0f0f0",
})) }))

View File

@ -1,26 +1,26 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Fruity style. // Fruity style.
var Fruity = Register(chroma.MustNewStyle("fruity", chroma.StyleEntries{ var Fruity = Register(chroma.MustNewStyle("fruity", chroma.StyleEntries{
chroma.TextWhitespace: "#888888", chroma.TextWhitespace: "#888888",
chroma.Background: "#ffffff bg:#111111", chroma.Background: "#ffffff bg:#111111",
chroma.GenericOutput: "#444444 bg:#222222", chroma.GenericOutput: "#444444 bg:#222222",
chroma.Keyword: "#fb660a bold", chroma.Keyword: "#fb660a bold",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.LiteralNumber: "#0086f7 bold", chroma.LiteralNumber: "#0086f7 bold",
chroma.NameTag: "#fb660a bold", chroma.NameTag: "#fb660a bold",
chroma.NameVariable: "#fb660a", chroma.NameVariable: "#fb660a",
chroma.Comment: "#008800 bg:#0f140f italic", chroma.Comment: "#008800 bg:#0f140f italic",
chroma.NameAttribute: "#ff0086 bold", chroma.NameAttribute: "#ff0086 bold",
chroma.LiteralString: "#0086d2", chroma.LiteralString: "#0086d2",
chroma.NameFunction: "#ff0086 bold", chroma.NameFunction: "#ff0086 bold",
chroma.GenericHeading: "#ffffff bold", chroma.GenericHeading: "#ffffff bold",
chroma.KeywordType: "#cdcaa9 bold", chroma.KeywordType: "#cdcaa9 bold",
chroma.GenericSubheading: "#ffffff bold", chroma.GenericSubheading: "#ffffff bold",
chroma.NameConstant: "#0086d2", chroma.NameConstant: "#0086d2",
chroma.CommentPreproc: "#ff0007 bold", chroma.CommentPreproc: "#ff0007 bold",
})) }))

View File

@ -1,50 +1,50 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// GitHub style. // GitHub style.
var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{ var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
chroma.CommentMultiline: "italic #999988", chroma.CommentMultiline: "italic #999988",
chroma.CommentPreproc: "bold #999999", chroma.CommentPreproc: "bold #999999",
chroma.CommentSingle: "italic #999988", chroma.CommentSingle: "italic #999988",
chroma.CommentSpecial: "bold italic #999999", chroma.CommentSpecial: "bold italic #999999",
chroma.Comment: "italic #999988", chroma.Comment: "italic #999988",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
chroma.GenericDeleted: "bg:#ffdddd #000000", chroma.GenericDeleted: "bg:#ffdddd #000000",
chroma.GenericEmph: "italic #000000", chroma.GenericEmph: "italic #000000",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericHeading: "#999999", chroma.GenericHeading: "#999999",
chroma.GenericInserted: "bg:#ddffdd #000000", chroma.GenericInserted: "bg:#ddffdd #000000",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericSubheading: "#aaaaaa", chroma.GenericSubheading: "#aaaaaa",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.KeywordType: "bold #445588", chroma.KeywordType: "bold #445588",
chroma.Keyword: "bold #000000", chroma.Keyword: "bold #000000",
chroma.LiteralNumber: "#009999", chroma.LiteralNumber: "#009999",
chroma.LiteralStringRegex: "#009926", chroma.LiteralStringRegex: "#009926",
chroma.LiteralStringSymbol: "#990073", chroma.LiteralStringSymbol: "#990073",
chroma.LiteralString: "#d14", chroma.LiteralString: "#d14",
chroma.NameAttribute: "#008080", chroma.NameAttribute: "#008080",
chroma.NameBuiltinPseudo: "#999999", chroma.NameBuiltinPseudo: "#999999",
chroma.NameBuiltin: "#0086B3", chroma.NameBuiltin: "#0086B3",
chroma.NameClass: "bold #445588", chroma.NameClass: "bold #445588",
chroma.NameConstant: "#008080", chroma.NameConstant: "#008080",
chroma.NameDecorator: "bold #3c5d5d", chroma.NameDecorator: "bold #3c5d5d",
chroma.NameEntity: "#800080", chroma.NameEntity: "#800080",
chroma.NameException: "bold #990000", chroma.NameException: "bold #990000",
chroma.NameFunction: "bold #990000", chroma.NameFunction: "bold #990000",
chroma.NameLabel: "bold #990000", chroma.NameLabel: "bold #990000",
chroma.NameNamespace: "#555555", chroma.NameNamespace: "#555555",
chroma.NameTag: "#000080", chroma.NameTag: "#000080",
chroma.NameVariableClass: "#008080", chroma.NameVariableClass: "#008080",
chroma.NameVariableGlobal: "#008080", chroma.NameVariableGlobal: "#008080",
chroma.NameVariableInstance: "#008080", chroma.NameVariableInstance: "#008080",
chroma.NameVariable: "#008080", chroma.NameVariable: "#008080",
chroma.Operator: "bold #000000", chroma.Operator: "bold #000000",
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,59 +1,59 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Lovelace style. // Lovelace style.
var Lovelace = Register(chroma.MustNewStyle("lovelace", chroma.StyleEntries{ var Lovelace = Register(chroma.MustNewStyle("lovelace", chroma.StyleEntries{
chroma.TextWhitespace: "#a89028", chroma.TextWhitespace: "#a89028",
chroma.Comment: "italic #888888", chroma.Comment: "italic #888888",
chroma.CommentHashbang: "#287088", chroma.CommentHashbang: "#287088",
chroma.CommentMultiline: "#888888", chroma.CommentMultiline: "#888888",
chroma.CommentPreproc: "noitalic #289870", chroma.CommentPreproc: "noitalic #289870",
chroma.Keyword: "#2838b0", chroma.Keyword: "#2838b0",
chroma.KeywordConstant: "italic #444444", chroma.KeywordConstant: "italic #444444",
chroma.KeywordDeclaration: "italic", chroma.KeywordDeclaration: "italic",
chroma.KeywordType: "italic", chroma.KeywordType: "italic",
chroma.Operator: "#666666", chroma.Operator: "#666666",
chroma.OperatorWord: "#a848a8", chroma.OperatorWord: "#a848a8",
chroma.Punctuation: "#888888", chroma.Punctuation: "#888888",
chroma.NameAttribute: "#388038", chroma.NameAttribute: "#388038",
chroma.NameBuiltin: "#388038", chroma.NameBuiltin: "#388038",
chroma.NameBuiltinPseudo: "italic", chroma.NameBuiltinPseudo: "italic",
chroma.NameClass: "#287088", chroma.NameClass: "#287088",
chroma.NameConstant: "#b85820", chroma.NameConstant: "#b85820",
chroma.NameDecorator: "#287088", chroma.NameDecorator: "#287088",
chroma.NameEntity: "#709030", chroma.NameEntity: "#709030",
chroma.NameException: "#908828", chroma.NameException: "#908828",
chroma.NameFunction: "#785840", chroma.NameFunction: "#785840",
chroma.NameFunctionMagic: "#b85820", chroma.NameFunctionMagic: "#b85820",
chroma.NameLabel: "#289870", chroma.NameLabel: "#289870",
chroma.NameNamespace: "#289870", chroma.NameNamespace: "#289870",
chroma.NameTag: "#2838b0", chroma.NameTag: "#2838b0",
chroma.NameVariable: "#b04040", chroma.NameVariable: "#b04040",
chroma.NameVariableGlobal: "#908828", chroma.NameVariableGlobal: "#908828",
chroma.NameVariableMagic: "#b85820", chroma.NameVariableMagic: "#b85820",
chroma.LiteralString: "#b83838", chroma.LiteralString: "#b83838",
chroma.LiteralStringAffix: "#444444", chroma.LiteralStringAffix: "#444444",
chroma.LiteralStringChar: "#a848a8", chroma.LiteralStringChar: "#a848a8",
chroma.LiteralStringDelimiter: "#b85820", chroma.LiteralStringDelimiter: "#b85820",
chroma.LiteralStringDoc: "italic #b85820", chroma.LiteralStringDoc: "italic #b85820",
chroma.LiteralStringEscape: "#709030", chroma.LiteralStringEscape: "#709030",
chroma.LiteralStringInterpol: "underline", chroma.LiteralStringInterpol: "underline",
chroma.LiteralStringOther: "#a848a8", chroma.LiteralStringOther: "#a848a8",
chroma.LiteralStringRegex: "#a848a8", chroma.LiteralStringRegex: "#a848a8",
chroma.LiteralNumber: "#444444", chroma.LiteralNumber: "#444444",
chroma.GenericDeleted: "#c02828", chroma.GenericDeleted: "#c02828",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericError: "#c02828", chroma.GenericError: "#c02828",
chroma.GenericHeading: "#666666", chroma.GenericHeading: "#666666",
chroma.GenericSubheading: "#444444", chroma.GenericSubheading: "#444444",
chroma.GenericInserted: "#388038", chroma.GenericInserted: "#388038",
chroma.GenericOutput: "#666666", chroma.GenericOutput: "#666666",
chroma.GenericPrompt: "#444444", chroma.GenericPrompt: "#444444",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericTraceback: "#2838b0", chroma.GenericTraceback: "#2838b0",
chroma.Error: "bg:#a848a8", chroma.Error: "bg:#a848a8",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,50 +1,50 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Manni style. // Manni style.
var Manni = Register(chroma.MustNewStyle("manni", chroma.StyleEntries{ var Manni = Register(chroma.MustNewStyle("manni", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #0099FF", chroma.Comment: "italic #0099FF",
chroma.CommentPreproc: "noitalic #009999", chroma.CommentPreproc: "noitalic #009999",
chroma.CommentSpecial: "bold", chroma.CommentSpecial: "bold",
chroma.Keyword: "bold #006699", chroma.Keyword: "bold #006699",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "#007788", chroma.KeywordType: "#007788",
chroma.Operator: "#555555", chroma.Operator: "#555555",
chroma.OperatorWord: "bold #000000", chroma.OperatorWord: "bold #000000",
chroma.NameBuiltin: "#336666", chroma.NameBuiltin: "#336666",
chroma.NameFunction: "#CC00FF", chroma.NameFunction: "#CC00FF",
chroma.NameClass: "bold #00AA88", chroma.NameClass: "bold #00AA88",
chroma.NameNamespace: "bold #00CCFF", chroma.NameNamespace: "bold #00CCFF",
chroma.NameException: "bold #CC0000", chroma.NameException: "bold #CC0000",
chroma.NameVariable: "#003333", chroma.NameVariable: "#003333",
chroma.NameConstant: "#336600", chroma.NameConstant: "#336600",
chroma.NameLabel: "#9999FF", chroma.NameLabel: "#9999FF",
chroma.NameEntity: "bold #999999", chroma.NameEntity: "bold #999999",
chroma.NameAttribute: "#330099", chroma.NameAttribute: "#330099",
chroma.NameTag: "bold #330099", chroma.NameTag: "bold #330099",
chroma.NameDecorator: "#9999FF", chroma.NameDecorator: "#9999FF",
chroma.LiteralString: "#CC3300", chroma.LiteralString: "#CC3300",
chroma.LiteralStringDoc: "italic", chroma.LiteralStringDoc: "italic",
chroma.LiteralStringInterpol: "#AA0000", chroma.LiteralStringInterpol: "#AA0000",
chroma.LiteralStringEscape: "bold #CC3300", chroma.LiteralStringEscape: "bold #CC3300",
chroma.LiteralStringRegex: "#33AAAA", chroma.LiteralStringRegex: "#33AAAA",
chroma.LiteralStringSymbol: "#FFCC33", chroma.LiteralStringSymbol: "#FFCC33",
chroma.LiteralStringOther: "#CC3300", chroma.LiteralStringOther: "#CC3300",
chroma.LiteralNumber: "#FF6600", chroma.LiteralNumber: "#FF6600",
chroma.GenericHeading: "bold #003300", chroma.GenericHeading: "bold #003300",
chroma.GenericSubheading: "bold #003300", chroma.GenericSubheading: "bold #003300",
chroma.GenericDeleted: "border:#CC0000 bg:#FFCCCC", chroma.GenericDeleted: "border:#CC0000 bg:#FFCCCC",
chroma.GenericInserted: "border:#00CC00 bg:#CCFFCC", chroma.GenericInserted: "border:#00CC00 bg:#CCFFCC",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #000099", chroma.GenericPrompt: "bold #000099",
chroma.GenericOutput: "#AAAAAA", chroma.GenericOutput: "#AAAAAA",
chroma.GenericTraceback: "#99CC66", chroma.GenericTraceback: "#99CC66",
chroma.Error: "bg:#FFAAAA #AA0000", chroma.Error: "bg:#FFAAAA #AA0000",
chroma.Background: " bg:#f0f3f3", chroma.Background: " bg:#f0f3f3",
})) }))

View File

@ -1,36 +1,36 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Monokai style. // Monokai style.
var Monokai = Register(chroma.MustNewStyle("monokai", chroma.StyleEntries{ var Monokai = Register(chroma.MustNewStyle("monokai", chroma.StyleEntries{
chroma.Text: "#f8f8f2", chroma.Text: "#f8f8f2",
chroma.Error: "#960050 bg:#1e0010", chroma.Error: "#960050 bg:#1e0010",
chroma.Comment: "#75715e", chroma.Comment: "#75715e",
chroma.Keyword: "#66d9ef", chroma.Keyword: "#66d9ef",
chroma.KeywordNamespace: "#f92672", chroma.KeywordNamespace: "#f92672",
chroma.Operator: "#f92672", chroma.Operator: "#f92672",
chroma.Punctuation: "#f8f8f2", chroma.Punctuation: "#f8f8f2",
chroma.Name: "#f8f8f2", chroma.Name: "#f8f8f2",
chroma.NameAttribute: "#a6e22e", chroma.NameAttribute: "#a6e22e",
chroma.NameClass: "#a6e22e", chroma.NameClass: "#a6e22e",
chroma.NameConstant: "#66d9ef", chroma.NameConstant: "#66d9ef",
chroma.NameDecorator: "#a6e22e", chroma.NameDecorator: "#a6e22e",
chroma.NameException: "#a6e22e", chroma.NameException: "#a6e22e",
chroma.NameFunction: "#a6e22e", chroma.NameFunction: "#a6e22e",
chroma.NameOther: "#a6e22e", chroma.NameOther: "#a6e22e",
chroma.NameTag: "#f92672", chroma.NameTag: "#f92672",
chroma.LiteralNumber: "#ae81ff", chroma.LiteralNumber: "#ae81ff",
chroma.Literal: "#ae81ff", chroma.Literal: "#ae81ff",
chroma.LiteralDate: "#e6db74", chroma.LiteralDate: "#e6db74",
chroma.LiteralString: "#e6db74", chroma.LiteralString: "#e6db74",
chroma.LiteralStringEscape: "#ae81ff", chroma.LiteralStringEscape: "#ae81ff",
chroma.GenericDeleted: "#f92672", chroma.GenericDeleted: "#f92672",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericInserted: "#a6e22e", chroma.GenericInserted: "#a6e22e",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericSubheading: "#75715e", chroma.GenericSubheading: "#75715e",
chroma.Background: "bg:#272822", chroma.Background: "bg:#272822",
})) }))

View File

@ -1,33 +1,33 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// MonokaiLight style. // MonokaiLight style.
var MonokaiLight = Register(chroma.MustNewStyle("monokailight", chroma.StyleEntries{ var MonokaiLight = Register(chroma.MustNewStyle("monokailight", chroma.StyleEntries{
chroma.Text: "#272822", chroma.Text: "#272822",
chroma.Error: "#960050 bg:#1e0010", chroma.Error: "#960050 bg:#1e0010",
chroma.Comment: "#75715e", chroma.Comment: "#75715e",
chroma.Keyword: "#00a8c8", chroma.Keyword: "#00a8c8",
chroma.KeywordNamespace: "#f92672", chroma.KeywordNamespace: "#f92672",
chroma.Operator: "#f92672", chroma.Operator: "#f92672",
chroma.Punctuation: "#111111", chroma.Punctuation: "#111111",
chroma.Name: "#111111", chroma.Name: "#111111",
chroma.NameAttribute: "#75af00", chroma.NameAttribute: "#75af00",
chroma.NameClass: "#75af00", chroma.NameClass: "#75af00",
chroma.NameConstant: "#00a8c8", chroma.NameConstant: "#00a8c8",
chroma.NameDecorator: "#75af00", chroma.NameDecorator: "#75af00",
chroma.NameException: "#75af00", chroma.NameException: "#75af00",
chroma.NameFunction: "#75af00", chroma.NameFunction: "#75af00",
chroma.NameOther: "#75af00", chroma.NameOther: "#75af00",
chroma.NameTag: "#f92672", chroma.NameTag: "#f92672",
chroma.LiteralNumber: "#ae81ff", chroma.LiteralNumber: "#ae81ff",
chroma.Literal: "#ae81ff", chroma.Literal: "#ae81ff",
chroma.LiteralDate: "#d88200", chroma.LiteralDate: "#d88200",
chroma.LiteralString: "#d88200", chroma.LiteralString: "#d88200",
chroma.LiteralStringEscape: "#8045FF", chroma.LiteralStringEscape: "#8045FF",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.Background: " bg:#fafafa", chroma.Background: " bg:#fafafa",
})) }))

View File

@ -1,58 +1,58 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Murphy style. // Murphy style.
var Murphy = Register(chroma.MustNewStyle("murphy", chroma.StyleEntries{ var Murphy = Register(chroma.MustNewStyle("murphy", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "#666 italic", chroma.Comment: "#666 italic",
chroma.CommentPreproc: "#579 noitalic", chroma.CommentPreproc: "#579 noitalic",
chroma.CommentSpecial: "#c00 bold", chroma.CommentSpecial: "#c00 bold",
chroma.Keyword: "bold #289", chroma.Keyword: "bold #289",
chroma.KeywordPseudo: "#08f", chroma.KeywordPseudo: "#08f",
chroma.KeywordType: "#66f", chroma.KeywordType: "#66f",
chroma.Operator: "#333", chroma.Operator: "#333",
chroma.OperatorWord: "bold #000", chroma.OperatorWord: "bold #000",
chroma.NameBuiltin: "#072", chroma.NameBuiltin: "#072",
chroma.NameFunction: "bold #5ed", chroma.NameFunction: "bold #5ed",
chroma.NameClass: "bold #e9e", chroma.NameClass: "bold #e9e",
chroma.NameNamespace: "bold #0e84b5", chroma.NameNamespace: "bold #0e84b5",
chroma.NameException: "bold #F00", chroma.NameException: "bold #F00",
chroma.NameVariable: "#036", chroma.NameVariable: "#036",
chroma.NameVariableInstance: "#aaf", chroma.NameVariableInstance: "#aaf",
chroma.NameVariableClass: "#ccf", chroma.NameVariableClass: "#ccf",
chroma.NameVariableGlobal: "#f84", chroma.NameVariableGlobal: "#f84",
chroma.NameConstant: "bold #5ed", chroma.NameConstant: "bold #5ed",
chroma.NameLabel: "bold #970", chroma.NameLabel: "bold #970",
chroma.NameEntity: "#800", chroma.NameEntity: "#800",
chroma.NameAttribute: "#007", chroma.NameAttribute: "#007",
chroma.NameTag: "#070", chroma.NameTag: "#070",
chroma.NameDecorator: "bold #555", chroma.NameDecorator: "bold #555",
chroma.LiteralString: "bg:#e0e0ff", chroma.LiteralString: "bg:#e0e0ff",
chroma.LiteralStringChar: "#88F bg:", chroma.LiteralStringChar: "#88F bg:",
chroma.LiteralStringDoc: "#D42 bg:", chroma.LiteralStringDoc: "#D42 bg:",
chroma.LiteralStringInterpol: "bg:#eee", chroma.LiteralStringInterpol: "bg:#eee",
chroma.LiteralStringEscape: "bold #666", chroma.LiteralStringEscape: "bold #666",
chroma.LiteralStringRegex: "bg:#e0e0ff #000", chroma.LiteralStringRegex: "bg:#e0e0ff #000",
chroma.LiteralStringSymbol: "#fc8 bg:", chroma.LiteralStringSymbol: "#fc8 bg:",
chroma.LiteralStringOther: "#f88", chroma.LiteralStringOther: "#f88",
chroma.LiteralNumber: "bold #60E", chroma.LiteralNumber: "bold #60E",
chroma.LiteralNumberInteger: "bold #66f", chroma.LiteralNumberInteger: "bold #66f",
chroma.LiteralNumberFloat: "bold #60E", chroma.LiteralNumberFloat: "bold #60E",
chroma.LiteralNumberHex: "bold #058", chroma.LiteralNumberHex: "bold #058",
chroma.LiteralNumberOct: "bold #40E", chroma.LiteralNumberOct: "bold #40E",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#A00000", chroma.GenericDeleted: "#A00000",
chroma.GenericInserted: "#00A000", chroma.GenericInserted: "#00A000",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #c65d09", chroma.GenericPrompt: "bold #c65d09",
chroma.GenericOutput: "#888", chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D", chroma.GenericTraceback: "#04D",
chroma.Error: "#F00 bg:#FAA", chroma.Error: "#F00 bg:#FAA",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,41 +1,41 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Native style. // Native style.
var Native = Register(chroma.MustNewStyle("native", chroma.StyleEntries{ var Native = Register(chroma.MustNewStyle("native", chroma.StyleEntries{
chroma.Background: "#d0d0d0 bg:#202020", chroma.Background: "#d0d0d0 bg:#202020",
chroma.TextWhitespace: "#666666", chroma.TextWhitespace: "#666666",
chroma.Comment: "italic #999999", chroma.Comment: "italic #999999",
chroma.CommentPreproc: "noitalic bold #cd2828", chroma.CommentPreproc: "noitalic bold #cd2828",
chroma.CommentSpecial: "noitalic bold #e50808 bg:#520000", chroma.CommentSpecial: "noitalic bold #e50808 bg:#520000",
chroma.Keyword: "bold #6ab825", chroma.Keyword: "bold #6ab825",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.OperatorWord: "bold #6ab825", chroma.OperatorWord: "bold #6ab825",
chroma.LiteralString: "#ed9d13", chroma.LiteralString: "#ed9d13",
chroma.LiteralStringOther: "#ffa500", chroma.LiteralStringOther: "#ffa500",
chroma.LiteralNumber: "#3677a9", chroma.LiteralNumber: "#3677a9",
chroma.NameBuiltin: "#24909d", chroma.NameBuiltin: "#24909d",
chroma.NameVariable: "#40ffff", chroma.NameVariable: "#40ffff",
chroma.NameConstant: "#40ffff", chroma.NameConstant: "#40ffff",
chroma.NameClass: "underline #447fcf", chroma.NameClass: "underline #447fcf",
chroma.NameFunction: "#447fcf", chroma.NameFunction: "#447fcf",
chroma.NameNamespace: "underline #447fcf", chroma.NameNamespace: "underline #447fcf",
chroma.NameException: "#bbbbbb", chroma.NameException: "#bbbbbb",
chroma.NameTag: "bold #6ab825", chroma.NameTag: "bold #6ab825",
chroma.NameAttribute: "#bbbbbb", chroma.NameAttribute: "#bbbbbb",
chroma.NameDecorator: "#ffa500", chroma.NameDecorator: "#ffa500",
chroma.GenericHeading: "bold #ffffff", chroma.GenericHeading: "bold #ffffff",
chroma.GenericSubheading: "underline #ffffff", chroma.GenericSubheading: "underline #ffffff",
chroma.GenericDeleted: "#d22323", chroma.GenericDeleted: "#d22323",
chroma.GenericInserted: "#589819", chroma.GenericInserted: "#589819",
chroma.GenericError: "#d22323", chroma.GenericError: "#d22323",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#aaaaaa", chroma.GenericPrompt: "#aaaaaa",
chroma.GenericOutput: "#cccccc", chroma.GenericOutput: "#cccccc",
chroma.GenericTraceback: "#d22323", chroma.GenericTraceback: "#d22323",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
})) }))

View File

@ -1,44 +1,44 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// ParaisoDark style. // ParaisoDark style.
var ParaisoDark = Register(chroma.MustNewStyle("paraiso-dark", chroma.StyleEntries{ var ParaisoDark = Register(chroma.MustNewStyle("paraiso-dark", chroma.StyleEntries{
chroma.Text: "#e7e9db", chroma.Text: "#e7e9db",
chroma.Error: "#ef6155", chroma.Error: "#ef6155",
chroma.Comment: "#776e71", chroma.Comment: "#776e71",
chroma.Keyword: "#815ba4", chroma.Keyword: "#815ba4",
chroma.KeywordNamespace: "#5bc4bf", chroma.KeywordNamespace: "#5bc4bf",
chroma.KeywordType: "#fec418", chroma.KeywordType: "#fec418",
chroma.Operator: "#5bc4bf", chroma.Operator: "#5bc4bf",
chroma.Punctuation: "#e7e9db", chroma.Punctuation: "#e7e9db",
chroma.Name: "#e7e9db", chroma.Name: "#e7e9db",
chroma.NameAttribute: "#06b6ef", chroma.NameAttribute: "#06b6ef",
chroma.NameClass: "#fec418", chroma.NameClass: "#fec418",
chroma.NameConstant: "#ef6155", chroma.NameConstant: "#ef6155",
chroma.NameDecorator: "#5bc4bf", chroma.NameDecorator: "#5bc4bf",
chroma.NameException: "#ef6155", chroma.NameException: "#ef6155",
chroma.NameFunction: "#06b6ef", chroma.NameFunction: "#06b6ef",
chroma.NameNamespace: "#fec418", chroma.NameNamespace: "#fec418",
chroma.NameOther: "#06b6ef", chroma.NameOther: "#06b6ef",
chroma.NameTag: "#5bc4bf", chroma.NameTag: "#5bc4bf",
chroma.NameVariable: "#ef6155", chroma.NameVariable: "#ef6155",
chroma.LiteralNumber: "#f99b15", chroma.LiteralNumber: "#f99b15",
chroma.Literal: "#f99b15", chroma.Literal: "#f99b15",
chroma.LiteralDate: "#48b685", chroma.LiteralDate: "#48b685",
chroma.LiteralString: "#48b685", chroma.LiteralString: "#48b685",
chroma.LiteralStringChar: "#e7e9db", chroma.LiteralStringChar: "#e7e9db",
chroma.LiteralStringDoc: "#776e71", chroma.LiteralStringDoc: "#776e71",
chroma.LiteralStringEscape: "#f99b15", chroma.LiteralStringEscape: "#f99b15",
chroma.LiteralStringInterpol: "#f99b15", chroma.LiteralStringInterpol: "#f99b15",
chroma.GenericDeleted: "#ef6155", chroma.GenericDeleted: "#ef6155",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericHeading: "bold #e7e9db", chroma.GenericHeading: "bold #e7e9db",
chroma.GenericInserted: "#48b685", chroma.GenericInserted: "#48b685",
chroma.GenericPrompt: "bold #776e71", chroma.GenericPrompt: "bold #776e71",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericSubheading: "bold #5bc4bf", chroma.GenericSubheading: "bold #5bc4bf",
chroma.Background: "bg:#2f1e2e", chroma.Background: "bg:#2f1e2e",
})) }))

View File

@ -1,44 +1,44 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// ParaisoLight style. // ParaisoLight style.
var ParaisoLight = Register(chroma.MustNewStyle("paraiso-light", chroma.StyleEntries{ var ParaisoLight = Register(chroma.MustNewStyle("paraiso-light", chroma.StyleEntries{
chroma.Text: "#2f1e2e", chroma.Text: "#2f1e2e",
chroma.Error: "#ef6155", chroma.Error: "#ef6155",
chroma.Comment: "#8d8687", chroma.Comment: "#8d8687",
chroma.Keyword: "#815ba4", chroma.Keyword: "#815ba4",
chroma.KeywordNamespace: "#5bc4bf", chroma.KeywordNamespace: "#5bc4bf",
chroma.KeywordType: "#fec418", chroma.KeywordType: "#fec418",
chroma.Operator: "#5bc4bf", chroma.Operator: "#5bc4bf",
chroma.Punctuation: "#2f1e2e", chroma.Punctuation: "#2f1e2e",
chroma.Name: "#2f1e2e", chroma.Name: "#2f1e2e",
chroma.NameAttribute: "#06b6ef", chroma.NameAttribute: "#06b6ef",
chroma.NameClass: "#fec418", chroma.NameClass: "#fec418",
chroma.NameConstant: "#ef6155", chroma.NameConstant: "#ef6155",
chroma.NameDecorator: "#5bc4bf", chroma.NameDecorator: "#5bc4bf",
chroma.NameException: "#ef6155", chroma.NameException: "#ef6155",
chroma.NameFunction: "#06b6ef", chroma.NameFunction: "#06b6ef",
chroma.NameNamespace: "#fec418", chroma.NameNamespace: "#fec418",
chroma.NameOther: "#06b6ef", chroma.NameOther: "#06b6ef",
chroma.NameTag: "#5bc4bf", chroma.NameTag: "#5bc4bf",
chroma.NameVariable: "#ef6155", chroma.NameVariable: "#ef6155",
chroma.LiteralNumber: "#f99b15", chroma.LiteralNumber: "#f99b15",
chroma.Literal: "#f99b15", chroma.Literal: "#f99b15",
chroma.LiteralDate: "#48b685", chroma.LiteralDate: "#48b685",
chroma.LiteralString: "#48b685", chroma.LiteralString: "#48b685",
chroma.LiteralStringChar: "#2f1e2e", chroma.LiteralStringChar: "#2f1e2e",
chroma.LiteralStringDoc: "#8d8687", chroma.LiteralStringDoc: "#8d8687",
chroma.LiteralStringEscape: "#f99b15", chroma.LiteralStringEscape: "#f99b15",
chroma.LiteralStringInterpol: "#f99b15", chroma.LiteralStringInterpol: "#f99b15",
chroma.GenericDeleted: "#ef6155", chroma.GenericDeleted: "#ef6155",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericHeading: "bold #2f1e2e", chroma.GenericHeading: "bold #2f1e2e",
chroma.GenericInserted: "#48b685", chroma.GenericInserted: "#48b685",
chroma.GenericPrompt: "bold #8d8687", chroma.GenericPrompt: "bold #8d8687",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericSubheading: "bold #5bc4bf", chroma.GenericSubheading: "bold #5bc4bf",
chroma.Background: "bg:#e7e9db", chroma.Background: "bg:#e7e9db",
})) }))

View File

@ -1,51 +1,51 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Pastie style. // Pastie style.
var Pastie = Register(chroma.MustNewStyle("pastie", chroma.StyleEntries{ var Pastie = Register(chroma.MustNewStyle("pastie", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "#888888", chroma.Comment: "#888888",
chroma.CommentPreproc: "bold #cc0000", chroma.CommentPreproc: "bold #cc0000",
chroma.CommentSpecial: "bg:#fff0f0 bold #cc0000", chroma.CommentSpecial: "bg:#fff0f0 bold #cc0000",
chroma.LiteralString: "bg:#fff0f0 #dd2200", chroma.LiteralString: "bg:#fff0f0 #dd2200",
chroma.LiteralStringRegex: "bg:#fff0ff #008800", chroma.LiteralStringRegex: "bg:#fff0ff #008800",
chroma.LiteralStringOther: "bg:#f0fff0 #22bb22", chroma.LiteralStringOther: "bg:#f0fff0 #22bb22",
chroma.LiteralStringSymbol: "#aa6600", chroma.LiteralStringSymbol: "#aa6600",
chroma.LiteralStringInterpol: "#3333bb", chroma.LiteralStringInterpol: "#3333bb",
chroma.LiteralStringEscape: "#0044dd", chroma.LiteralStringEscape: "#0044dd",
chroma.OperatorWord: "#008800", chroma.OperatorWord: "#008800",
chroma.Keyword: "bold #008800", chroma.Keyword: "bold #008800",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "#888888", chroma.KeywordType: "#888888",
chroma.NameClass: "bold #bb0066", chroma.NameClass: "bold #bb0066",
chroma.NameException: "bold #bb0066", chroma.NameException: "bold #bb0066",
chroma.NameFunction: "bold #0066bb", chroma.NameFunction: "bold #0066bb",
chroma.NameProperty: "bold #336699", chroma.NameProperty: "bold #336699",
chroma.NameNamespace: "bold #bb0066", chroma.NameNamespace: "bold #bb0066",
chroma.NameBuiltin: "#003388", chroma.NameBuiltin: "#003388",
chroma.NameVariable: "#336699", chroma.NameVariable: "#336699",
chroma.NameVariableClass: "#336699", chroma.NameVariableClass: "#336699",
chroma.NameVariableInstance: "#3333bb", chroma.NameVariableInstance: "#3333bb",
chroma.NameVariableGlobal: "#dd7700", chroma.NameVariableGlobal: "#dd7700",
chroma.NameConstant: "bold #003366", chroma.NameConstant: "bold #003366",
chroma.NameTag: "bold #bb0066", chroma.NameTag: "bold #bb0066",
chroma.NameAttribute: "#336699", chroma.NameAttribute: "#336699",
chroma.NameDecorator: "#555555", chroma.NameDecorator: "#555555",
chroma.NameLabel: "italic #336699", chroma.NameLabel: "italic #336699",
chroma.LiteralNumber: "bold #0000DD", chroma.LiteralNumber: "bold #0000DD",
chroma.GenericHeading: "#333", chroma.GenericHeading: "#333",
chroma.GenericSubheading: "#666", chroma.GenericSubheading: "#666",
chroma.GenericDeleted: "bg:#ffdddd #000000", chroma.GenericDeleted: "bg:#ffdddd #000000",
chroma.GenericInserted: "bg:#ddffdd #000000", chroma.GenericInserted: "bg:#ddffdd #000000",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,43 +1,43 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Perldoc style. // Perldoc style.
var Perldoc = Register(chroma.MustNewStyle("perldoc", chroma.StyleEntries{ var Perldoc = Register(chroma.MustNewStyle("perldoc", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "#228B22", chroma.Comment: "#228B22",
chroma.CommentPreproc: "#1e889b", chroma.CommentPreproc: "#1e889b",
chroma.CommentSpecial: "#8B008B bold", chroma.CommentSpecial: "#8B008B bold",
chroma.LiteralString: "#CD5555", chroma.LiteralString: "#CD5555",
chroma.LiteralStringHeredoc: "#1c7e71 italic", chroma.LiteralStringHeredoc: "#1c7e71 italic",
chroma.LiteralStringRegex: "#1c7e71", chroma.LiteralStringRegex: "#1c7e71",
chroma.LiteralStringOther: "#cb6c20", chroma.LiteralStringOther: "#cb6c20",
chroma.LiteralNumber: "#B452CD", chroma.LiteralNumber: "#B452CD",
chroma.OperatorWord: "#8B008B", chroma.OperatorWord: "#8B008B",
chroma.Keyword: "#8B008B bold", chroma.Keyword: "#8B008B bold",
chroma.KeywordType: "#00688B", chroma.KeywordType: "#00688B",
chroma.NameClass: "#008b45 bold", chroma.NameClass: "#008b45 bold",
chroma.NameException: "#008b45 bold", chroma.NameException: "#008b45 bold",
chroma.NameFunction: "#008b45", chroma.NameFunction: "#008b45",
chroma.NameNamespace: "#008b45 underline", chroma.NameNamespace: "#008b45 underline",
chroma.NameVariable: "#00688B", chroma.NameVariable: "#00688B",
chroma.NameConstant: "#00688B", chroma.NameConstant: "#00688B",
chroma.NameDecorator: "#707a7c", chroma.NameDecorator: "#707a7c",
chroma.NameTag: "#8B008B bold", chroma.NameTag: "#8B008B bold",
chroma.NameAttribute: "#658b00", chroma.NameAttribute: "#658b00",
chroma.NameBuiltin: "#658b00", chroma.NameBuiltin: "#658b00",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#aa0000", chroma.GenericDeleted: "#aa0000",
chroma.GenericInserted: "#00aa00", chroma.GenericInserted: "#00aa00",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
chroma.Background: " bg:#eeeedd", chroma.Background: " bg:#eeeedd",
})) }))

View File

@ -1,46 +1,46 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// RainbowDash style. // RainbowDash style.
var RainbowDash = Register(chroma.MustNewStyle("rainbow_dash", chroma.StyleEntries{ var RainbowDash = Register(chroma.MustNewStyle("rainbow_dash", chroma.StyleEntries{
chroma.Comment: "italic #0080ff", chroma.Comment: "italic #0080ff",
chroma.CommentPreproc: "noitalic", chroma.CommentPreproc: "noitalic",
chroma.CommentSpecial: "bold", chroma.CommentSpecial: "bold",
chroma.Error: "bg:#cc0000 #ffffff", chroma.Error: "bg:#cc0000 #ffffff",
chroma.GenericDeleted: "border:#c5060b bg:#ffcccc", chroma.GenericDeleted: "border:#c5060b bg:#ffcccc",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericError: "#ff0000", chroma.GenericError: "#ff0000",
chroma.GenericHeading: "bold #2c5dcd", chroma.GenericHeading: "bold #2c5dcd",
chroma.GenericInserted: "border:#00cc00 bg:#ccffcc", chroma.GenericInserted: "border:#00cc00 bg:#ccffcc",
chroma.GenericOutput: "#aaaaaa", chroma.GenericOutput: "#aaaaaa",
chroma.GenericPrompt: "bold #2c5dcd", chroma.GenericPrompt: "bold #2c5dcd",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericSubheading: "bold #2c5dcd", chroma.GenericSubheading: "bold #2c5dcd",
chroma.GenericTraceback: "#c5060b", chroma.GenericTraceback: "#c5060b",
chroma.Keyword: "bold #2c5dcd", chroma.Keyword: "bold #2c5dcd",
chroma.KeywordPseudo: "nobold", chroma.KeywordPseudo: "nobold",
chroma.KeywordType: "#5918bb", chroma.KeywordType: "#5918bb",
chroma.NameAttribute: "italic #2c5dcd", chroma.NameAttribute: "italic #2c5dcd",
chroma.NameBuiltin: "bold #5918bb", chroma.NameBuiltin: "bold #5918bb",
chroma.NameClass: "underline", chroma.NameClass: "underline",
chroma.NameConstant: "#318495", chroma.NameConstant: "#318495",
chroma.NameDecorator: "bold #ff8000", chroma.NameDecorator: "bold #ff8000",
chroma.NameEntity: "bold #5918bb", chroma.NameEntity: "bold #5918bb",
chroma.NameException: "bold #5918bb", chroma.NameException: "bold #5918bb",
chroma.NameFunction: "bold #ff8000", chroma.NameFunction: "bold #ff8000",
chroma.NameTag: "bold #2c5dcd", chroma.NameTag: "bold #2c5dcd",
chroma.LiteralNumber: "bold #5918bb", chroma.LiteralNumber: "bold #5918bb",
chroma.Operator: "#2c5dcd", chroma.Operator: "#2c5dcd",
chroma.OperatorWord: "bold", chroma.OperatorWord: "bold",
chroma.LiteralString: "#00cc66", chroma.LiteralString: "#00cc66",
chroma.LiteralStringDoc: "italic", chroma.LiteralStringDoc: "italic",
chroma.LiteralStringEscape: "bold #c5060b", chroma.LiteralStringEscape: "bold #c5060b",
chroma.LiteralStringOther: "#318495", chroma.LiteralStringOther: "#318495",
chroma.LiteralStringSymbol: "bold #c5060b", chroma.LiteralStringSymbol: "bold #c5060b",
chroma.Text: "#4d4d4d", chroma.Text: "#4d4d4d",
chroma.TextWhitespace: "#cbcbcb", chroma.TextWhitespace: "#cbcbcb",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,18 +1,18 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Rrt style. // Rrt style.
var Rrt = Register(chroma.MustNewStyle("rrt", chroma.StyleEntries{ var Rrt = Register(chroma.MustNewStyle("rrt", chroma.StyleEntries{
chroma.Comment: "#00ff00", chroma.Comment: "#00ff00",
chroma.NameFunction: "#ffff00", chroma.NameFunction: "#ffff00",
chroma.NameVariable: "#eedd82", chroma.NameVariable: "#eedd82",
chroma.NameConstant: "#7fffd4", chroma.NameConstant: "#7fffd4",
chroma.Keyword: "#ff0000", chroma.Keyword: "#ff0000",
chroma.CommentPreproc: "#e5e5e5", chroma.CommentPreproc: "#e5e5e5",
chroma.LiteralString: "#87ceeb", chroma.LiteralString: "#87ceeb",
chroma.KeywordType: "#ee82ee", chroma.KeywordType: "#ee82ee",
chroma.Background: " bg:#000000", chroma.Background: " bg:#000000",
})) }))

View File

@ -1,78 +1,78 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Tango style. // Tango style.
var Tango = Register(chroma.MustNewStyle("tango", chroma.StyleEntries{ var Tango = Register(chroma.MustNewStyle("tango", chroma.StyleEntries{
chroma.TextWhitespace: "underline #f8f8f8", chroma.TextWhitespace: "underline #f8f8f8",
chroma.Error: "#a40000 border:#ef2929", chroma.Error: "#a40000 border:#ef2929",
chroma.Other: "#000000", chroma.Other: "#000000",
chroma.Comment: "italic #8f5902", chroma.Comment: "italic #8f5902",
chroma.CommentMultiline: "italic #8f5902", chroma.CommentMultiline: "italic #8f5902",
chroma.CommentPreproc: "italic #8f5902", chroma.CommentPreproc: "italic #8f5902",
chroma.CommentSingle: "italic #8f5902", chroma.CommentSingle: "italic #8f5902",
chroma.CommentSpecial: "italic #8f5902", chroma.CommentSpecial: "italic #8f5902",
chroma.Keyword: "bold #204a87", chroma.Keyword: "bold #204a87",
chroma.KeywordConstant: "bold #204a87", chroma.KeywordConstant: "bold #204a87",
chroma.KeywordDeclaration: "bold #204a87", chroma.KeywordDeclaration: "bold #204a87",
chroma.KeywordNamespace: "bold #204a87", chroma.KeywordNamespace: "bold #204a87",
chroma.KeywordPseudo: "bold #204a87", chroma.KeywordPseudo: "bold #204a87",
chroma.KeywordReserved: "bold #204a87", chroma.KeywordReserved: "bold #204a87",
chroma.KeywordType: "bold #204a87", chroma.KeywordType: "bold #204a87",
chroma.Operator: "bold #ce5c00", chroma.Operator: "bold #ce5c00",
chroma.OperatorWord: "bold #204a87", chroma.OperatorWord: "bold #204a87",
chroma.Punctuation: "bold #000000", chroma.Punctuation: "bold #000000",
chroma.Name: "#000000", chroma.Name: "#000000",
chroma.NameAttribute: "#c4a000", chroma.NameAttribute: "#c4a000",
chroma.NameBuiltin: "#204a87", chroma.NameBuiltin: "#204a87",
chroma.NameBuiltinPseudo: "#3465a4", chroma.NameBuiltinPseudo: "#3465a4",
chroma.NameClass: "#000000", chroma.NameClass: "#000000",
chroma.NameConstant: "#000000", chroma.NameConstant: "#000000",
chroma.NameDecorator: "bold #5c35cc", chroma.NameDecorator: "bold #5c35cc",
chroma.NameEntity: "#ce5c00", chroma.NameEntity: "#ce5c00",
chroma.NameException: "bold #cc0000", chroma.NameException: "bold #cc0000",
chroma.NameFunction: "#000000", chroma.NameFunction: "#000000",
chroma.NameProperty: "#000000", chroma.NameProperty: "#000000",
chroma.NameLabel: "#f57900", chroma.NameLabel: "#f57900",
chroma.NameNamespace: "#000000", chroma.NameNamespace: "#000000",
chroma.NameOther: "#000000", chroma.NameOther: "#000000",
chroma.NameTag: "bold #204a87", chroma.NameTag: "bold #204a87",
chroma.NameVariable: "#000000", chroma.NameVariable: "#000000",
chroma.NameVariableClass: "#000000", chroma.NameVariableClass: "#000000",
chroma.NameVariableGlobal: "#000000", chroma.NameVariableGlobal: "#000000",
chroma.NameVariableInstance: "#000000", chroma.NameVariableInstance: "#000000",
chroma.LiteralNumber: "bold #0000cf", chroma.LiteralNumber: "bold #0000cf",
chroma.LiteralNumberFloat: "bold #0000cf", chroma.LiteralNumberFloat: "bold #0000cf",
chroma.LiteralNumberHex: "bold #0000cf", chroma.LiteralNumberHex: "bold #0000cf",
chroma.LiteralNumberInteger: "bold #0000cf", chroma.LiteralNumberInteger: "bold #0000cf",
chroma.LiteralNumberIntegerLong: "bold #0000cf", chroma.LiteralNumberIntegerLong: "bold #0000cf",
chroma.LiteralNumberOct: "bold #0000cf", chroma.LiteralNumberOct: "bold #0000cf",
chroma.Literal: "#000000", chroma.Literal: "#000000",
chroma.LiteralDate: "#000000", chroma.LiteralDate: "#000000",
chroma.LiteralString: "#4e9a06", chroma.LiteralString: "#4e9a06",
chroma.LiteralStringBacktick: "#4e9a06", chroma.LiteralStringBacktick: "#4e9a06",
chroma.LiteralStringChar: "#4e9a06", chroma.LiteralStringChar: "#4e9a06",
chroma.LiteralStringDoc: "italic #8f5902", chroma.LiteralStringDoc: "italic #8f5902",
chroma.LiteralStringDouble: "#4e9a06", chroma.LiteralStringDouble: "#4e9a06",
chroma.LiteralStringEscape: "#4e9a06", chroma.LiteralStringEscape: "#4e9a06",
chroma.LiteralStringHeredoc: "#4e9a06", chroma.LiteralStringHeredoc: "#4e9a06",
chroma.LiteralStringInterpol: "#4e9a06", chroma.LiteralStringInterpol: "#4e9a06",
chroma.LiteralStringOther: "#4e9a06", chroma.LiteralStringOther: "#4e9a06",
chroma.LiteralStringRegex: "#4e9a06", chroma.LiteralStringRegex: "#4e9a06",
chroma.LiteralStringSingle: "#4e9a06", chroma.LiteralStringSingle: "#4e9a06",
chroma.LiteralStringSymbol: "#4e9a06", chroma.LiteralStringSymbol: "#4e9a06",
chroma.Generic: "#000000", chroma.Generic: "#000000",
chroma.GenericDeleted: "#a40000", chroma.GenericDeleted: "#a40000",
chroma.GenericEmph: "italic #000000", chroma.GenericEmph: "italic #000000",
chroma.GenericError: "#ef2929", chroma.GenericError: "#ef2929",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericInserted: "#00A000", chroma.GenericInserted: "#00A000",
chroma.GenericOutput: "italic #000000", chroma.GenericOutput: "italic #000000",
chroma.GenericPrompt: "#8f5902", chroma.GenericPrompt: "#8f5902",
chroma.GenericStrong: "bold #000000", chroma.GenericStrong: "bold #000000",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericTraceback: "bold #a40000", chroma.GenericTraceback: "bold #a40000",
chroma.Background: " bg:#f8f8f8", chroma.Background: " bg:#f8f8f8",
})) }))

View File

@ -1,41 +1,41 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Trac style. // Trac style.
var Trac = Register(chroma.MustNewStyle("trac", chroma.StyleEntries{ var Trac = Register(chroma.MustNewStyle("trac", chroma.StyleEntries{
chroma.TextWhitespace: "#bbbbbb", chroma.TextWhitespace: "#bbbbbb",
chroma.Comment: "italic #999988", chroma.Comment: "italic #999988",
chroma.CommentPreproc: "bold noitalic #999999", chroma.CommentPreproc: "bold noitalic #999999",
chroma.CommentSpecial: "bold #999999", chroma.CommentSpecial: "bold #999999",
chroma.Operator: "bold", chroma.Operator: "bold",
chroma.LiteralString: "#bb8844", chroma.LiteralString: "#bb8844",
chroma.LiteralStringRegex: "#808000", chroma.LiteralStringRegex: "#808000",
chroma.LiteralNumber: "#009999", chroma.LiteralNumber: "#009999",
chroma.Keyword: "bold", chroma.Keyword: "bold",
chroma.KeywordType: "#445588", chroma.KeywordType: "#445588",
chroma.NameBuiltin: "#999999", chroma.NameBuiltin: "#999999",
chroma.NameFunction: "bold #990000", chroma.NameFunction: "bold #990000",
chroma.NameClass: "bold #445588", chroma.NameClass: "bold #445588",
chroma.NameException: "bold #990000", chroma.NameException: "bold #990000",
chroma.NameNamespace: "#555555", chroma.NameNamespace: "#555555",
chroma.NameVariable: "#008080", chroma.NameVariable: "#008080",
chroma.NameConstant: "#008080", chroma.NameConstant: "#008080",
chroma.NameTag: "#000080", chroma.NameTag: "#000080",
chroma.NameAttribute: "#008080", chroma.NameAttribute: "#008080",
chroma.NameEntity: "#800080", chroma.NameEntity: "#800080",
chroma.GenericHeading: "#999999", chroma.GenericHeading: "#999999",
chroma.GenericSubheading: "#aaaaaa", chroma.GenericSubheading: "#aaaaaa",
chroma.GenericDeleted: "bg:#ffdddd #000000", chroma.GenericDeleted: "bg:#ffdddd #000000",
chroma.GenericInserted: "bg:#ddffdd #000000", chroma.GenericInserted: "bg:#ddffdd #000000",
chroma.GenericError: "#aa0000", chroma.GenericError: "#aa0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "#555555", chroma.GenericPrompt: "#555555",
chroma.GenericOutput: "#888888", chroma.GenericOutput: "#888888",
chroma.GenericTraceback: "#aa0000", chroma.GenericTraceback: "#aa0000",
chroma.Error: "bg:#e3d2d2 #a61717", chroma.Error: "bg:#e3d2d2 #a61717",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,35 +1,35 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Vim style. // Vim style.
var Vim = Register(chroma.MustNewStyle("vim", chroma.StyleEntries{ var Vim = Register(chroma.MustNewStyle("vim", chroma.StyleEntries{
chroma.Background: "#cccccc bg:#000000", chroma.Background: "#cccccc bg:#000000",
chroma.Comment: "#000080", chroma.Comment: "#000080",
chroma.CommentSpecial: "bold #cd0000", chroma.CommentSpecial: "bold #cd0000",
chroma.Keyword: "#cdcd00", chroma.Keyword: "#cdcd00",
chroma.KeywordDeclaration: "#00cd00", chroma.KeywordDeclaration: "#00cd00",
chroma.KeywordNamespace: "#cd00cd", chroma.KeywordNamespace: "#cd00cd",
chroma.KeywordType: "#00cd00", chroma.KeywordType: "#00cd00",
chroma.Operator: "#3399cc", chroma.Operator: "#3399cc",
chroma.OperatorWord: "#cdcd00", chroma.OperatorWord: "#cdcd00",
chroma.NameClass: "#00cdcd", chroma.NameClass: "#00cdcd",
chroma.NameBuiltin: "#cd00cd", chroma.NameBuiltin: "#cd00cd",
chroma.NameException: "bold #666699", chroma.NameException: "bold #666699",
chroma.NameVariable: "#00cdcd", chroma.NameVariable: "#00cdcd",
chroma.LiteralString: "#cd0000", chroma.LiteralString: "#cd0000",
chroma.LiteralNumber: "#cd00cd", chroma.LiteralNumber: "#cd00cd",
chroma.GenericHeading: "bold #000080", chroma.GenericHeading: "bold #000080",
chroma.GenericSubheading: "bold #800080", chroma.GenericSubheading: "bold #800080",
chroma.GenericDeleted: "#cd0000", chroma.GenericDeleted: "#cd0000",
chroma.GenericInserted: "#00cd00", chroma.GenericInserted: "#00cd00",
chroma.GenericError: "#FF0000", chroma.GenericError: "#FF0000",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold #000080", chroma.GenericPrompt: "bold #000080",
chroma.GenericOutput: "#888", chroma.GenericOutput: "#888",
chroma.GenericTraceback: "#04D", chroma.GenericTraceback: "#04D",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
})) }))

View File

@ -1,23 +1,23 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// VisualStudio style. // VisualStudio style.
var VisualStudio = Register(chroma.MustNewStyle("vs", chroma.StyleEntries{ var VisualStudio = Register(chroma.MustNewStyle("vs", chroma.StyleEntries{
chroma.Comment: "#008000", chroma.Comment: "#008000",
chroma.CommentPreproc: "#0000ff", chroma.CommentPreproc: "#0000ff",
chroma.Keyword: "#0000ff", chroma.Keyword: "#0000ff",
chroma.OperatorWord: "#0000ff", chroma.OperatorWord: "#0000ff",
chroma.KeywordType: "#2b91af", chroma.KeywordType: "#2b91af",
chroma.NameClass: "#2b91af", chroma.NameClass: "#2b91af",
chroma.LiteralString: "#a31515", chroma.LiteralString: "#a31515",
chroma.GenericHeading: "bold", chroma.GenericHeading: "bold",
chroma.GenericSubheading: "bold", chroma.GenericSubheading: "bold",
chroma.GenericEmph: "italic", chroma.GenericEmph: "italic",
chroma.GenericStrong: "bold", chroma.GenericStrong: "bold",
chroma.GenericPrompt: "bold", chroma.GenericPrompt: "bold",
chroma.Error: "border:#FF0000", chroma.Error: "border:#FF0000",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))

View File

@ -1,29 +1,29 @@
package styles package styles
import ( import (
"github.com/alecthomas/chroma" "github.com/alecthomas/chroma"
) )
// Xcode style. // Xcode style.
var Xcode = Register(chroma.MustNewStyle("xcode", chroma.StyleEntries{ var Xcode = Register(chroma.MustNewStyle("xcode", chroma.StyleEntries{
chroma.Comment: "#177500", chroma.Comment: "#177500",
chroma.CommentPreproc: "#633820", chroma.CommentPreproc: "#633820",
chroma.LiteralString: "#C41A16", chroma.LiteralString: "#C41A16",
chroma.LiteralStringChar: "#2300CE", chroma.LiteralStringChar: "#2300CE",
chroma.Operator: "#000000", chroma.Operator: "#000000",
chroma.Keyword: "#A90D91", chroma.Keyword: "#A90D91",
chroma.Name: "#000000", chroma.Name: "#000000",
chroma.NameAttribute: "#836C28", chroma.NameAttribute: "#836C28",
chroma.NameClass: "#3F6E75", chroma.NameClass: "#3F6E75",
chroma.NameFunction: "#000000", chroma.NameFunction: "#000000",
chroma.NameBuiltin: "#A90D91", chroma.NameBuiltin: "#A90D91",
chroma.NameBuiltinPseudo: "#5B269A", chroma.NameBuiltinPseudo: "#5B269A",
chroma.NameVariable: "#000000", chroma.NameVariable: "#000000",
chroma.NameTag: "#000000", chroma.NameTag: "#000000",
chroma.NameDecorator: "#000000", chroma.NameDecorator: "#000000",
chroma.NameLabel: "#000000", chroma.NameLabel: "#000000",
chroma.Literal: "#1C01CE", chroma.Literal: "#1C01CE",
chroma.LiteralNumber: "#1C01CE", chroma.LiteralNumber: "#1C01CE",
chroma.Error: "#000000", chroma.Error: "#000000",
chroma.Background: " bg:#ffffff", chroma.Background: " bg:#ffffff",
})) }))