mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
parent
b2643973d2
commit
c263f6fa19
README.md
bin
formatters/html
serialise.gostyle.gostyle_test.gostyles
abap.goabap.xmlalgol.goalgol.xmlalgol_nu.goalgol_nu.xmlapi.goarduino.goarduino.xmlautumn.goautumn.xmlaverage.goaverage.xmlbase16-snazzy.gobase16-snazzy.xmlborland.goborland.xmlbw.gobw.xmlcatppuccin-frappe.gocatppuccin-frappe.xmlcatppuccin-latte.gocatppuccin-latte.xmlcatppuccin-macchiato.gocatppuccin-macchiato.xmlcatppuccin-mocha.gocatppuccin-mocha.xmlcolorful.gocolorful.xmlcompat.godoom-one.godoom-one.xmldoom-one2.godoom-one2.xmldracula.godracula.xmlemacs.goemacs.xmlfriendly.gofriendly.xmlfruity.gofruity.xmlgithub-dark.gogithub-dark.xmlgithub.gogithub.xmlgruvbox-light.gogruvbox-light.xmlgruvbox.gogruvbox.xmlhr_dark.gohr_high_contrast.gohr_high_contrast.xmlhrdark.xmligor.goigor.xmllovelace.golovelace.xmlmanni.gomanni.xmlmodus-operandi.gomodus-operandi.xmlmodus-vivendi.gomodus-vivendi.xmlmonokai.gomonokai.xmlmonokailight.gomonokailight.xmlmurphy.gomurphy.xmlnative.gonative.xmlnord.gonord.xmlonesenterprise.goonesenterprise.xmlparaiso-dark.goparaiso-dark.xmlparaiso-light.goparaiso-light.xmlpastie.gopastie.xmlperldoc.goperldoc.xmlpygments.gopygments.xmlrainbow_dash.gorainbow_dash.xmlrose-pine-dawn.gorose-pine-dawn.xmlrose-pine-moon.go
19
README.md
19
README.md
@ -230,17 +230,22 @@ formatter outputs raw tokens. The latter is useful for debugging lexers.
|
||||
<a id="markdown-styles" name="styles"></a>
|
||||
### Styles
|
||||
|
||||
Chroma styles use the [same syntax](http://pygments.org/docs/styles/) as Pygments.
|
||||
Chroma styles are defined in XML. The style entries use the
|
||||
[same syntax](http://pygments.org/docs/styles/) as Pygments.
|
||||
|
||||
All Pygments styles have been converted to Chroma using the `_tools/style.py` script.
|
||||
All Pygments styles have been converted to Chroma using the `_tools/style.py`
|
||||
script.
|
||||
|
||||
When you work with one of [Chroma's styles](https://github.com/alecthomas/chroma/tree/master/styles), know that the `chroma.Background` token type provides the default style for tokens. It does so by defining a foreground color and background color.
|
||||
When you work with one of [Chroma's styles](https://github.com/alecthomas/chroma/tree/master/styles),
|
||||
know that the `Background` token type provides the default style for tokens. It does so
|
||||
by defining a foreground color and background color.
|
||||
|
||||
For example, this gives each token name not defined in the style a default color of `#f8f8f8` and uses `#000000` for the highlighted code block's background:
|
||||
For example, this gives each token name not defined in the style a default color
|
||||
of `#f8f8f8` and uses `#000000` for the highlighted code block's background:
|
||||
|
||||
~~~go
|
||||
chroma.Background: "#f8f8f2 bg:#000000",
|
||||
~~~
|
||||
```xml
|
||||
<entry type="Background" style="#f8f8f2 bg:#000000"/>
|
||||
```
|
||||
|
||||
Also, token types in a style file are hierarchical. For instance, when `CommentSpecial` is not defined, Chroma uses the token style from `Comment`. So when several comment tokens use the same color, you'll only need to define `Comment` and override the one that has a different color.
|
||||
|
||||
|
1
bin/enumer
Symbolic link
1
bin/enumer
Symbolic link
@ -0,0 +1 @@
|
||||
.enumer-1.5.7.pkg
|
@ -1 +0,0 @@
|
||||
.stringer-0.1.11.pkg
|
@ -520,7 +520,7 @@ func (f *Formatter) styleToCSS(style *chroma.Style) map[chroma.TokenType]string
|
||||
classes[chroma.LineNumbersTable] = lineNumbersStyle + classes[chroma.LineNumbersTable]
|
||||
classes[chroma.LineTable] = "border-spacing: 0; padding: 0; margin: 0; border: 0;" + classes[chroma.LineTable]
|
||||
classes[chroma.LineTableTD] = "vertical-align: top; padding: 0; margin: 0; border: 0;" + classes[chroma.LineTableTD]
|
||||
classes[chroma.LineLink] = "outline: none; text-decoration:none; color:inherit" + classes[chroma.LineLink]
|
||||
classes[chroma.LineLink] = "outline: none; text-decoration: none; color: inherit" + classes[chroma.LineLink]
|
||||
return classes
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ func TestTableLinkeableLineNumbers(t *testing.T) {
|
||||
|
||||
assert.Contains(t, buf.String(), `id="line1"><a class="lnlinks" href="#line1">1</a>`)
|
||||
assert.Contains(t, buf.String(), `id="line5"><a class="lnlinks" href="#line5">5</a>`)
|
||||
assert.Contains(t, buf.String(), `/* LineLinks */ .chroma .lnlinks { outline: none; text-decoration:none; color:inherit }`, buf.String())
|
||||
assert.Contains(t, buf.String(), `/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }`, buf.String())
|
||||
}
|
||||
|
||||
func TestTableLineNumberSpacing(t *testing.T) {
|
||||
|
11
serialise.go
11
serialise.go
@ -372,13 +372,12 @@ func (t *TokenType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
if err := d.DecodeElement(&el, &start); err != nil {
|
||||
return err
|
||||
}
|
||||
for tt, text := range _TokenType_map {
|
||||
if text == el.Type {
|
||||
*t = tt
|
||||
return nil
|
||||
}
|
||||
tt, err := TokenTypeString(el.Type)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return fmt.Errorf("unknown TokenType %q", el.Type)
|
||||
*t = tt
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t TokenType) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
106
style.go
106
style.go
@ -1,7 +1,10 @@
|
||||
package chroma
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"io"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -49,6 +52,10 @@ type StyleEntry struct {
|
||||
NoInherit bool
|
||||
}
|
||||
|
||||
func (s StyleEntry) MarshalText() ([]byte, error) {
|
||||
return []byte(s.String()), nil
|
||||
}
|
||||
|
||||
func (s StyleEntry) String() string {
|
||||
out := []string{}
|
||||
if s.Bold != Pass {
|
||||
@ -216,6 +223,13 @@ func (s *StyleBuilder) Build() (*Style, error) {
|
||||
// StyleEntries mapping TokenType to colour definition.
|
||||
type StyleEntries map[TokenType]string
|
||||
|
||||
// NewXMLStyle parses an XML style definition.
|
||||
func NewXMLStyle(r io.Reader) (*Style, error) {
|
||||
dec := xml.NewDecoder(r)
|
||||
style := &Style{}
|
||||
return style, dec.Decode(style)
|
||||
}
|
||||
|
||||
// NewStyle creates a new style definition.
|
||||
func NewStyle(name string, entries StyleEntries) (*Style, error) {
|
||||
return NewStyleBuilder(name).AddAll(entries).Build()
|
||||
@ -239,6 +253,89 @@ type Style struct {
|
||||
parent *Style
|
||||
}
|
||||
|
||||
func (s *Style) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
if s.parent != nil {
|
||||
return fmt.Errorf("cannot marshal style with parent")
|
||||
}
|
||||
start.Name = xml.Name{Local: "style"}
|
||||
start.Attr = []xml.Attr{{Name: xml.Name{Local: "name"}, Value: s.Name}}
|
||||
if err := e.EncodeToken(start); err != nil {
|
||||
return err
|
||||
}
|
||||
sorted := make([]TokenType, 0, len(s.entries))
|
||||
for ttype := range s.entries {
|
||||
sorted = append(sorted, ttype)
|
||||
}
|
||||
sort.Slice(sorted, func(i, j int) bool { return sorted[i] < sorted[j] })
|
||||
for _, ttype := range sorted {
|
||||
entry := s.entries[ttype]
|
||||
el := xml.StartElement{Name: xml.Name{Local: "entry"}}
|
||||
el.Attr = []xml.Attr{
|
||||
{Name: xml.Name{Local: "type"}, Value: ttype.String()},
|
||||
{Name: xml.Name{Local: "style"}, Value: entry.String()},
|
||||
}
|
||||
if err := e.EncodeToken(el); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := e.EncodeToken(xml.EndElement{Name: el.Name}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return e.EncodeToken(xml.EndElement{Name: start.Name})
|
||||
}
|
||||
|
||||
func (s *Style) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "name" {
|
||||
s.Name = attr.Value
|
||||
} else {
|
||||
return fmt.Errorf("unexpected attribute %s", attr.Name.Local)
|
||||
}
|
||||
}
|
||||
if s.Name == "" {
|
||||
return fmt.Errorf("missing style name attribute")
|
||||
}
|
||||
s.entries = map[TokenType]StyleEntry{}
|
||||
for {
|
||||
tok, err := d.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
switch el := tok.(type) {
|
||||
case xml.StartElement:
|
||||
if el.Name.Local != "entry" {
|
||||
return fmt.Errorf("unexpected element %s", el.Name.Local)
|
||||
}
|
||||
var ttype TokenType
|
||||
var entry StyleEntry
|
||||
for _, attr := range el.Attr {
|
||||
switch attr.Name.Local {
|
||||
case "type":
|
||||
ttype, err = TokenTypeString(attr.Value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case "style":
|
||||
entry, err = ParseStyleEntry(attr.Value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
default:
|
||||
return fmt.Errorf("unexpected attribute %s", attr.Name.Local)
|
||||
}
|
||||
}
|
||||
s.entries[ttype] = entry
|
||||
|
||||
case xml.EndElement:
|
||||
if el.Name.Local == start.Name.Local {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Types that are styled.
|
||||
func (s *Style) Types() []TokenType {
|
||||
dedupe := map[TokenType]bool{}
|
||||
@ -319,6 +416,15 @@ func (s *Style) synthesisable(ttype TokenType) bool {
|
||||
return ttype == LineHighlight || ttype == LineNumbers || ttype == LineNumbersTable
|
||||
}
|
||||
|
||||
// MustParseStyleEntry parses a Pygments style entry or panics.
|
||||
func MustParseStyleEntry(entry string) StyleEntry {
|
||||
out, err := ParseStyleEntry(entry)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// ParseStyleEntry parses a Pygments style entry.
|
||||
func ParseStyleEntry(entry string) (StyleEntry, error) { // nolint: gocyclo
|
||||
out := StyleEntry{}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package chroma
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"testing"
|
||||
|
||||
assert "github.com/alecthomas/assert/v2"
|
||||
@ -101,3 +102,21 @@ func TestStyleBuilderTransform(t *testing.T) {
|
||||
assert.Equal(t, "#ff0000", orig.Get(NameVariable).Colour.String())
|
||||
assert.Equal(t, "#ff3300", deriv.Get(NameVariableGlobal).Colour.String())
|
||||
}
|
||||
|
||||
func TestStyleMarshaller(t *testing.T) {
|
||||
expected, err := NewStyle("test", StyleEntries{
|
||||
Whitespace: "bg:#ffffff",
|
||||
Text: "#000000 underline",
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
data, err := xml.MarshalIndent(expected, "", " ")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, `<style name="test">
|
||||
<entry type="Text" style="underline #000000"></entry>
|
||||
<entry type="TextWhitespace" style="bg:#ffffff"></entry>
|
||||
</style>`, string(data))
|
||||
actual := &Style{}
|
||||
err = xml.Unmarshal(data, actual)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, expected, actual)
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Abap style.
|
||||
var Abap = Register(chroma.MustNewStyle("abap", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #888",
|
||||
chroma.CommentSpecial: "#888",
|
||||
chroma.Keyword: "#00f",
|
||||
chroma.OperatorWord: "#00f",
|
||||
chroma.Name: "#000",
|
||||
chroma.LiteralNumber: "#3af",
|
||||
chroma.LiteralString: "#5a2",
|
||||
chroma.Error: "#F00",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
11
styles/abap.xml
Normal file
11
styles/abap.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<style name="abap">
|
||||
<entry type="Error" style="#ff0000"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#0000ff"/>
|
||||
<entry type="Name" style="#000000"/>
|
||||
<entry type="LiteralString" style="#55aa22"/>
|
||||
<entry type="LiteralNumber" style="#33aaff"/>
|
||||
<entry type="OperatorWord" style="#0000ff"/>
|
||||
<entry type="Comment" style="italic #888888"/>
|
||||
<entry type="CommentSpecial" style="#888888"/>
|
||||
</style>
|
@ -1,25 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Algol style.
|
||||
var Algol = Register(chroma.MustNewStyle("algol", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #888",
|
||||
chroma.CommentPreproc: "bold noitalic #888",
|
||||
chroma.CommentSpecial: "bold noitalic #888",
|
||||
chroma.Keyword: "underline bold",
|
||||
chroma.KeywordDeclaration: "italic",
|
||||
chroma.NameBuiltin: "bold italic",
|
||||
chroma.NameBuiltinPseudo: "bold italic",
|
||||
chroma.NameNamespace: "bold italic #666",
|
||||
chroma.NameClass: "bold italic #666",
|
||||
chroma.NameFunction: "bold italic #666",
|
||||
chroma.NameVariable: "bold italic #666",
|
||||
chroma.NameConstant: "bold italic #666",
|
||||
chroma.OperatorWord: "bold",
|
||||
chroma.LiteralString: "italic #666",
|
||||
chroma.Error: "border:#FF0000",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
18
styles/algol.xml
Normal file
18
styles/algol.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<style name="algol">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold underline"/>
|
||||
<entry type="KeywordDeclaration" style="italic"/>
|
||||
<entry type="NameBuiltin" style="bold italic"/>
|
||||
<entry type="NameBuiltinPseudo" style="bold italic"/>
|
||||
<entry type="NameClass" style="bold italic #666666"/>
|
||||
<entry type="NameConstant" style="bold italic #666666"/>
|
||||
<entry type="NameFunction" style="bold italic #666666"/>
|
||||
<entry type="NameNamespace" style="bold italic #666666"/>
|
||||
<entry type="NameVariable" style="bold italic #666666"/>
|
||||
<entry type="LiteralString" style="italic #666666"/>
|
||||
<entry type="OperatorWord" style="bold"/>
|
||||
<entry type="Comment" style="italic #888888"/>
|
||||
<entry type="CommentSpecial" style="bold noitalic #888888"/>
|
||||
<entry type="CommentPreproc" style="bold noitalic #888888"/>
|
||||
</style>
|
@ -1,25 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// AlgolNu style.
|
||||
var AlgolNu = Register(chroma.MustNewStyle("algol_nu", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #888",
|
||||
chroma.CommentPreproc: "bold noitalic #888",
|
||||
chroma.CommentSpecial: "bold noitalic #888",
|
||||
chroma.Keyword: "bold",
|
||||
chroma.KeywordDeclaration: "italic",
|
||||
chroma.NameBuiltin: "bold italic",
|
||||
chroma.NameBuiltinPseudo: "bold italic",
|
||||
chroma.NameNamespace: "bold italic #666",
|
||||
chroma.NameClass: "bold italic #666",
|
||||
chroma.NameFunction: "bold italic #666",
|
||||
chroma.NameVariable: "bold italic #666",
|
||||
chroma.NameConstant: "bold italic #666",
|
||||
chroma.OperatorWord: "bold",
|
||||
chroma.LiteralString: "italic #666",
|
||||
chroma.Error: "border:#FF0000",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
18
styles/algol_nu.xml
Normal file
18
styles/algol_nu.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<style name="algol_nu">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold"/>
|
||||
<entry type="KeywordDeclaration" style="italic"/>
|
||||
<entry type="NameBuiltin" style="bold italic"/>
|
||||
<entry type="NameBuiltinPseudo" style="bold italic"/>
|
||||
<entry type="NameClass" style="bold italic #666666"/>
|
||||
<entry type="NameConstant" style="bold italic #666666"/>
|
||||
<entry type="NameFunction" style="bold italic #666666"/>
|
||||
<entry type="NameNamespace" style="bold italic #666666"/>
|
||||
<entry type="NameVariable" style="bold italic #666666"/>
|
||||
<entry type="LiteralString" style="italic #666666"/>
|
||||
<entry type="OperatorWord" style="bold"/>
|
||||
<entry type="Comment" style="italic #888888"/>
|
||||
<entry type="CommentSpecial" style="bold noitalic #888888"/>
|
||||
<entry type="CommentPreproc" style="bold noitalic #888888"/>
|
||||
</style>
|
@ -1,16 +1,44 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"embed" // Imported for side-effects.
|
||||
"io/fs"
|
||||
"sort"
|
||||
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
//go:embed *.xml
|
||||
var embedded embed.FS
|
||||
|
||||
// Registry of Styles.
|
||||
var Registry = map[string]*chroma.Style{}
|
||||
var Registry = func() map[string]*chroma.Style {
|
||||
registry := map[string]*chroma.Style{}
|
||||
// Register all embedded styles.
|
||||
files, err := fs.ReadDir(embedded, ".")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, file := range files {
|
||||
if file.IsDir() {
|
||||
continue
|
||||
}
|
||||
r, err := embedded.Open(file.Name())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
style, err := chroma.NewXMLStyle(r)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
registry[style.Name] = style
|
||||
_ = r.Close()
|
||||
}
|
||||
return registry
|
||||
}()
|
||||
|
||||
// Fallback style. Reassign to change the default fallback style.
|
||||
var Fallback = SwapOff
|
||||
var Fallback = Registry["swapoff"]
|
||||
|
||||
// Register a chroma.Style.
|
||||
func Register(style *chroma.Style) *chroma.Style {
|
||||
|
@ -1,25 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Arduino style.
|
||||
var Arduino = Register(chroma.MustNewStyle("arduino", chroma.StyleEntries{
|
||||
chroma.Error: "#a61717",
|
||||
chroma.Comment: "#95a5a6",
|
||||
chroma.CommentPreproc: "#728E00",
|
||||
chroma.Keyword: "#728E00",
|
||||
chroma.KeywordConstant: "#00979D",
|
||||
chroma.KeywordPseudo: "#00979D",
|
||||
chroma.KeywordReserved: "#00979D",
|
||||
chroma.KeywordType: "#00979D",
|
||||
chroma.Operator: "#728E00",
|
||||
chroma.Name: "#434f54",
|
||||
chroma.NameBuiltin: "#728E00",
|
||||
chroma.NameFunction: "#D35400",
|
||||
chroma.NameOther: "#728E00",
|
||||
chroma.LiteralNumber: "#8A7B52",
|
||||
chroma.LiteralString: "#7F8C8D",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
18
styles/arduino.xml
Normal file
18
styles/arduino.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<style name="arduino">
|
||||
<entry type="Error" style="#a61717"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#728e00"/>
|
||||
<entry type="KeywordConstant" style="#00979d"/>
|
||||
<entry type="KeywordPseudo" style="#00979d"/>
|
||||
<entry type="KeywordReserved" style="#00979d"/>
|
||||
<entry type="KeywordType" style="#00979d"/>
|
||||
<entry type="Name" style="#434f54"/>
|
||||
<entry type="NameBuiltin" style="#728e00"/>
|
||||
<entry type="NameFunction" style="#d35400"/>
|
||||
<entry type="NameOther" style="#728e00"/>
|
||||
<entry type="LiteralString" style="#7f8c8d"/>
|
||||
<entry type="LiteralNumber" style="#8a7b52"/>
|
||||
<entry type="Operator" style="#728e00"/>
|
||||
<entry type="Comment" style="#95a5a6"/>
|
||||
<entry type="CommentPreproc" style="#728e00"/>
|
||||
</style>
|
@ -1,43 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Autumn style.
|
||||
var Autumn = Register(chroma.MustNewStyle("autumn", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #aaaaaa",
|
||||
chroma.CommentPreproc: "noitalic #4c8317",
|
||||
chroma.CommentSpecial: "italic #0000aa",
|
||||
chroma.Keyword: "#0000aa",
|
||||
chroma.KeywordType: "#00aaaa",
|
||||
chroma.OperatorWord: "#0000aa",
|
||||
chroma.NameBuiltin: "#00aaaa",
|
||||
chroma.NameFunction: "#00aa00",
|
||||
chroma.NameClass: "underline #00aa00",
|
||||
chroma.NameNamespace: "underline #00aaaa",
|
||||
chroma.NameVariable: "#aa0000",
|
||||
chroma.NameConstant: "#aa0000",
|
||||
chroma.NameEntity: "bold #800",
|
||||
chroma.NameAttribute: "#1e90ff",
|
||||
chroma.NameTag: "bold #1e90ff",
|
||||
chroma.NameDecorator: "#888888",
|
||||
chroma.LiteralString: "#aa5500",
|
||||
chroma.LiteralStringSymbol: "#0000aa",
|
||||
chroma.LiteralStringRegex: "#009999",
|
||||
chroma.LiteralNumber: "#009999",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#aa0000",
|
||||
chroma.GenericInserted: "#00aa00",
|
||||
chroma.GenericError: "#aa0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "#555555",
|
||||
chroma.GenericOutput: "#888888",
|
||||
chroma.GenericTraceback: "#aa0000",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#F00 bg:#FAA",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
36
styles/autumn.xml
Normal file
36
styles/autumn.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<style name="autumn">
|
||||
<entry type="Error" style="#ff0000 bg:#ffaaaa"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#0000aa"/>
|
||||
<entry type="KeywordType" style="#00aaaa"/>
|
||||
<entry type="NameAttribute" style="#1e90ff"/>
|
||||
<entry type="NameBuiltin" style="#00aaaa"/>
|
||||
<entry type="NameClass" style="underline #00aa00"/>
|
||||
<entry type="NameConstant" style="#aa0000"/>
|
||||
<entry type="NameDecorator" style="#888888"/>
|
||||
<entry type="NameEntity" style="bold #880000"/>
|
||||
<entry type="NameFunction" style="#00aa00"/>
|
||||
<entry type="NameNamespace" style="underline #00aaaa"/>
|
||||
<entry type="NameTag" style="bold #1e90ff"/>
|
||||
<entry type="NameVariable" style="#aa0000"/>
|
||||
<entry type="LiteralString" style="#aa5500"/>
|
||||
<entry type="LiteralStringRegex" style="#009999"/>
|
||||
<entry type="LiteralStringSymbol" style="#0000aa"/>
|
||||
<entry type="LiteralNumber" style="#009999"/>
|
||||
<entry type="OperatorWord" style="#0000aa"/>
|
||||
<entry type="Comment" style="italic #aaaaaa"/>
|
||||
<entry type="CommentSpecial" style="italic #0000aa"/>
|
||||
<entry type="CommentPreproc" style="noitalic #4c8317"/>
|
||||
<entry type="GenericDeleted" style="#aa0000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#aa0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00aa00"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="#555555"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#aa0000"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,81 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Average style.
|
||||
var Average = Register(chroma.MustNewStyle("average", chroma.StyleEntries{
|
||||
chroma.Comment: "#757575",
|
||||
chroma.CommentHashbang: "#757575",
|
||||
chroma.CommentMultiline: "#757575",
|
||||
chroma.CommentPreproc: "#757575",
|
||||
chroma.CommentSingle: "#757575",
|
||||
chroma.CommentSpecial: "#757575",
|
||||
chroma.Generic: "#757575",
|
||||
chroma.GenericDeleted: "#ec0000",
|
||||
chroma.GenericEmph: "#757575 underline",
|
||||
chroma.GenericError: "#ec0000",
|
||||
chroma.GenericHeading: "#757575 bold",
|
||||
chroma.GenericInserted: "#757575 bold",
|
||||
chroma.GenericOutput: "#757575",
|
||||
chroma.GenericPrompt: "#757575",
|
||||
chroma.GenericStrong: "#757575 italic",
|
||||
chroma.GenericSubheading: "#757575 bold",
|
||||
chroma.GenericTraceback: "#757575",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#ec0000",
|
||||
chroma.Keyword: "#ec0000",
|
||||
chroma.KeywordConstant: "#ec0000",
|
||||
chroma.KeywordDeclaration: "#ec0000",
|
||||
chroma.KeywordNamespace: "#ec0000",
|
||||
chroma.KeywordPseudo: "#ec0000",
|
||||
chroma.KeywordReserved: "#ec0000",
|
||||
chroma.KeywordType: "#5f5fff",
|
||||
chroma.Literal: "#757575",
|
||||
chroma.LiteralDate: "#757575",
|
||||
chroma.Name: "#757575",
|
||||
chroma.NameAttribute: "#5f5fff",
|
||||
chroma.NameBuiltin: "#ec0000",
|
||||
chroma.NameBuiltinPseudo: "#757575",
|
||||
chroma.NameClass: "#5f5fff",
|
||||
chroma.NameConstant: "#008900",
|
||||
chroma.NameDecorator: "#008900",
|
||||
chroma.NameEntity: "#757575",
|
||||
chroma.NameException: "#757575",
|
||||
chroma.NameFunction: "#5f5fff",
|
||||
chroma.NameLabel: "#ec0000",
|
||||
chroma.NameNamespace: "#757575",
|
||||
chroma.NameOther: "#757575",
|
||||
chroma.NameTag: "#ec0000",
|
||||
chroma.NameVariable: "#ec0000",
|
||||
chroma.NameVariableClass: "#ec0000",
|
||||
chroma.NameVariableGlobal: "#ec0000",
|
||||
chroma.NameVariableInstance: "#ec0000",
|
||||
chroma.LiteralNumber: "#008900",
|
||||
chroma.LiteralNumberBin: "#008900",
|
||||
chroma.LiteralNumberFloat: "#008900",
|
||||
chroma.LiteralNumberHex: "#008900",
|
||||
chroma.LiteralNumberInteger: "#008900",
|
||||
chroma.LiteralNumberIntegerLong: "#008900",
|
||||
chroma.LiteralNumberOct: "#008900",
|
||||
chroma.Operator: "#ec0000",
|
||||
chroma.OperatorWord: "#ec0000",
|
||||
chroma.Other: "#757575",
|
||||
chroma.Punctuation: "#757575",
|
||||
chroma.LiteralString: "#008900",
|
||||
chroma.LiteralStringBacktick: "#008900",
|
||||
chroma.LiteralStringChar: "#008900",
|
||||
chroma.LiteralStringDoc: "#008900",
|
||||
chroma.LiteralStringDouble: "#008900",
|
||||
chroma.LiteralStringEscape: "#008900",
|
||||
chroma.LiteralStringHeredoc: "#008900",
|
||||
chroma.LiteralStringInterpol: "#008900",
|
||||
chroma.LiteralStringOther: "#008900",
|
||||
chroma.LiteralStringRegex: "#008900",
|
||||
chroma.LiteralStringSingle: "#008900",
|
||||
chroma.LiteralStringSymbol: "#008900",
|
||||
chroma.Text: "#757575",
|
||||
chroma.TextWhitespace: "#757575",
|
||||
chroma.Background: " bg:#000000",
|
||||
}))
|
74
styles/average.xml
Normal file
74
styles/average.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<style name="average">
|
||||
<entry type="Other" style="#757575"/>
|
||||
<entry type="Error" style="#ec0000"/>
|
||||
<entry type="Background" style="bg:#000000"/>
|
||||
<entry type="Keyword" style="#ec0000"/>
|
||||
<entry type="KeywordConstant" style="#ec0000"/>
|
||||
<entry type="KeywordDeclaration" style="#ec0000"/>
|
||||
<entry type="KeywordNamespace" style="#ec0000"/>
|
||||
<entry type="KeywordPseudo" style="#ec0000"/>
|
||||
<entry type="KeywordReserved" style="#ec0000"/>
|
||||
<entry type="KeywordType" style="#5f5fff"/>
|
||||
<entry type="Name" style="#757575"/>
|
||||
<entry type="NameAttribute" style="#5f5fff"/>
|
||||
<entry type="NameBuiltin" style="#ec0000"/>
|
||||
<entry type="NameBuiltinPseudo" style="#757575"/>
|
||||
<entry type="NameClass" style="#5f5fff"/>
|
||||
<entry type="NameConstant" style="#008900"/>
|
||||
<entry type="NameDecorator" style="#008900"/>
|
||||
<entry type="NameEntity" style="#757575"/>
|
||||
<entry type="NameException" style="#757575"/>
|
||||
<entry type="NameFunction" style="#5f5fff"/>
|
||||
<entry type="NameLabel" style="#ec0000"/>
|
||||
<entry type="NameNamespace" style="#757575"/>
|
||||
<entry type="NameOther" style="#757575"/>
|
||||
<entry type="NameTag" style="#ec0000"/>
|
||||
<entry type="NameVariable" style="#ec0000"/>
|
||||
<entry type="NameVariableClass" style="#ec0000"/>
|
||||
<entry type="NameVariableGlobal" style="#ec0000"/>
|
||||
<entry type="NameVariableInstance" style="#ec0000"/>
|
||||
<entry type="Literal" style="#757575"/>
|
||||
<entry type="LiteralDate" style="#757575"/>
|
||||
<entry type="LiteralString" style="#008900"/>
|
||||
<entry type="LiteralStringBacktick" style="#008900"/>
|
||||
<entry type="LiteralStringChar" style="#008900"/>
|
||||
<entry type="LiteralStringDoc" style="#008900"/>
|
||||
<entry type="LiteralStringDouble" style="#008900"/>
|
||||
<entry type="LiteralStringEscape" style="#008900"/>
|
||||
<entry type="LiteralStringHeredoc" style="#008900"/>
|
||||
<entry type="LiteralStringInterpol" style="#008900"/>
|
||||
<entry type="LiteralStringOther" style="#008900"/>
|
||||
<entry type="LiteralStringRegex" style="#008900"/>
|
||||
<entry type="LiteralStringSingle" style="#008900"/>
|
||||
<entry type="LiteralStringSymbol" style="#008900"/>
|
||||
<entry type="LiteralNumber" style="#008900"/>
|
||||
<entry type="LiteralNumberBin" style="#008900"/>
|
||||
<entry type="LiteralNumberFloat" style="#008900"/>
|
||||
<entry type="LiteralNumberHex" style="#008900"/>
|
||||
<entry type="LiteralNumberInteger" style="#008900"/>
|
||||
<entry type="LiteralNumberIntegerLong" style="#008900"/>
|
||||
<entry type="LiteralNumberOct" style="#008900"/>
|
||||
<entry type="Operator" style="#ec0000"/>
|
||||
<entry type="OperatorWord" style="#ec0000"/>
|
||||
<entry type="Punctuation" style="#757575"/>
|
||||
<entry type="Comment" style="#757575"/>
|
||||
<entry type="CommentHashbang" style="#757575"/>
|
||||
<entry type="CommentMultiline" style="#757575"/>
|
||||
<entry type="CommentSingle" style="#757575"/>
|
||||
<entry type="CommentSpecial" style="#757575"/>
|
||||
<entry type="CommentPreproc" style="#757575"/>
|
||||
<entry type="Generic" style="#757575"/>
|
||||
<entry type="GenericDeleted" style="#ec0000"/>
|
||||
<entry type="GenericEmph" style="underline #757575"/>
|
||||
<entry type="GenericError" style="#ec0000"/>
|
||||
<entry type="GenericHeading" style="bold #757575"/>
|
||||
<entry type="GenericInserted" style="bold #757575"/>
|
||||
<entry type="GenericOutput" style="#757575"/>
|
||||
<entry type="GenericPrompt" style="#757575"/>
|
||||
<entry type="GenericStrong" style="italic #757575"/>
|
||||
<entry type="GenericSubheading" style="bold #757575"/>
|
||||
<entry type="GenericTraceback" style="#757575"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#757575"/>
|
||||
<entry type="TextWhitespace" style="#757575"/>
|
||||
</style>
|
@ -1,81 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Base16Snazzy style
|
||||
var Base16Snazzy = Register(chroma.MustNewStyle("base16-snazzy", chroma.StyleEntries{
|
||||
chroma.Comment: "#78787e",
|
||||
chroma.CommentHashbang: "#78787e",
|
||||
chroma.CommentMultiline: "#78787e",
|
||||
chroma.CommentPreproc: "#78787e",
|
||||
chroma.CommentSingle: "#78787e",
|
||||
chroma.CommentSpecial: "#78787e",
|
||||
chroma.Generic: "#e2e4e5",
|
||||
chroma.GenericDeleted: "#ff5c57",
|
||||
chroma.GenericEmph: "#e2e4e5 underline",
|
||||
chroma.GenericError: "#ff5c57",
|
||||
chroma.GenericHeading: "#e2e4e5 bold",
|
||||
chroma.GenericInserted: "#e2e4e5 bold",
|
||||
chroma.GenericOutput: "#43454f",
|
||||
chroma.GenericPrompt: "#e2e4e5",
|
||||
chroma.GenericStrong: "#e2e4e5 italic",
|
||||
chroma.GenericSubheading: "#e2e4e5 bold",
|
||||
chroma.GenericTraceback: "#e2e4e5",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#ff5c57",
|
||||
chroma.Keyword: "#ff6ac1",
|
||||
chroma.KeywordConstant: "#ff6ac1",
|
||||
chroma.KeywordDeclaration: "#ff5c57",
|
||||
chroma.KeywordNamespace: "#ff6ac1",
|
||||
chroma.KeywordPseudo: "#ff6ac1",
|
||||
chroma.KeywordReserved: "#ff6ac1",
|
||||
chroma.KeywordType: "#9aedfe",
|
||||
chroma.Literal: "#e2e4e5",
|
||||
chroma.LiteralDate: "#e2e4e5",
|
||||
chroma.Name: "#e2e4e5",
|
||||
chroma.NameAttribute: "#57c7ff",
|
||||
chroma.NameBuiltin: "#ff5c57",
|
||||
chroma.NameBuiltinPseudo: "#e2e4e5",
|
||||
chroma.NameClass: "#f3f99d",
|
||||
chroma.NameConstant: "#ff9f43",
|
||||
chroma.NameDecorator: "#ff9f43",
|
||||
chroma.NameEntity: "#e2e4e5",
|
||||
chroma.NameException: "#e2e4e5",
|
||||
chroma.NameFunction: "#57c7ff",
|
||||
chroma.NameLabel: "#ff5c57",
|
||||
chroma.NameNamespace: "#e2e4e5",
|
||||
chroma.NameOther: "#e2e4e5",
|
||||
chroma.NameTag: "#ff6ac1",
|
||||
chroma.NameVariable: "#ff5c57",
|
||||
chroma.NameVariableClass: "#ff5c57",
|
||||
chroma.NameVariableGlobal: "#ff5c57",
|
||||
chroma.NameVariableInstance: "#ff5c57",
|
||||
chroma.LiteralNumber: "#ff9f43",
|
||||
chroma.LiteralNumberBin: "#ff9f43",
|
||||
chroma.LiteralNumberFloat: "#ff9f43",
|
||||
chroma.LiteralNumberHex: "#ff9f43",
|
||||
chroma.LiteralNumberInteger: "#ff9f43",
|
||||
chroma.LiteralNumberIntegerLong: "#ff9f43",
|
||||
chroma.LiteralNumberOct: "#ff9f43",
|
||||
chroma.Operator: "#ff6ac1",
|
||||
chroma.OperatorWord: "#ff6ac1",
|
||||
chroma.Other: "#e2e4e5",
|
||||
chroma.Punctuation: "#e2e4e5",
|
||||
chroma.LiteralString: "#5af78e",
|
||||
chroma.LiteralStringBacktick: "#5af78e",
|
||||
chroma.LiteralStringChar: "#5af78e",
|
||||
chroma.LiteralStringDoc: "#5af78e",
|
||||
chroma.LiteralStringDouble: "#5af78e",
|
||||
chroma.LiteralStringEscape: "#5af78e",
|
||||
chroma.LiteralStringHeredoc: "#5af78e",
|
||||
chroma.LiteralStringInterpol: "#5af78e",
|
||||
chroma.LiteralStringOther: "#5af78e",
|
||||
chroma.LiteralStringRegex: "#5af78e",
|
||||
chroma.LiteralStringSingle: "#5af78e",
|
||||
chroma.LiteralStringSymbol: "#5af78e",
|
||||
chroma.Text: "#e2e4e5",
|
||||
chroma.TextWhitespace: "#e2e4e5",
|
||||
chroma.Background: " bg:#282a36",
|
||||
}))
|
74
styles/base16-snazzy.xml
Normal file
74
styles/base16-snazzy.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<style name="base16-snazzy">
|
||||
<entry type="Other" style="#e2e4e5"/>
|
||||
<entry type="Error" style="#ff5c57"/>
|
||||
<entry type="Background" style="bg:#282a36"/>
|
||||
<entry type="Keyword" style="#ff6ac1"/>
|
||||
<entry type="KeywordConstant" style="#ff6ac1"/>
|
||||
<entry type="KeywordDeclaration" style="#ff5c57"/>
|
||||
<entry type="KeywordNamespace" style="#ff6ac1"/>
|
||||
<entry type="KeywordPseudo" style="#ff6ac1"/>
|
||||
<entry type="KeywordReserved" style="#ff6ac1"/>
|
||||
<entry type="KeywordType" style="#9aedfe"/>
|
||||
<entry type="Name" style="#e2e4e5"/>
|
||||
<entry type="NameAttribute" style="#57c7ff"/>
|
||||
<entry type="NameBuiltin" style="#ff5c57"/>
|
||||
<entry type="NameBuiltinPseudo" style="#e2e4e5"/>
|
||||
<entry type="NameClass" style="#f3f99d"/>
|
||||
<entry type="NameConstant" style="#ff9f43"/>
|
||||
<entry type="NameDecorator" style="#ff9f43"/>
|
||||
<entry type="NameEntity" style="#e2e4e5"/>
|
||||
<entry type="NameException" style="#e2e4e5"/>
|
||||
<entry type="NameFunction" style="#57c7ff"/>
|
||||
<entry type="NameLabel" style="#ff5c57"/>
|
||||
<entry type="NameNamespace" style="#e2e4e5"/>
|
||||
<entry type="NameOther" style="#e2e4e5"/>
|
||||
<entry type="NameTag" style="#ff6ac1"/>
|
||||
<entry type="NameVariable" style="#ff5c57"/>
|
||||
<entry type="NameVariableClass" style="#ff5c57"/>
|
||||
<entry type="NameVariableGlobal" style="#ff5c57"/>
|
||||
<entry type="NameVariableInstance" style="#ff5c57"/>
|
||||
<entry type="Literal" style="#e2e4e5"/>
|
||||
<entry type="LiteralDate" style="#e2e4e5"/>
|
||||
<entry type="LiteralString" style="#5af78e"/>
|
||||
<entry type="LiteralStringBacktick" style="#5af78e"/>
|
||||
<entry type="LiteralStringChar" style="#5af78e"/>
|
||||
<entry type="LiteralStringDoc" style="#5af78e"/>
|
||||
<entry type="LiteralStringDouble" style="#5af78e"/>
|
||||
<entry type="LiteralStringEscape" style="#5af78e"/>
|
||||
<entry type="LiteralStringHeredoc" style="#5af78e"/>
|
||||
<entry type="LiteralStringInterpol" style="#5af78e"/>
|
||||
<entry type="LiteralStringOther" style="#5af78e"/>
|
||||
<entry type="LiteralStringRegex" style="#5af78e"/>
|
||||
<entry type="LiteralStringSingle" style="#5af78e"/>
|
||||
<entry type="LiteralStringSymbol" style="#5af78e"/>
|
||||
<entry type="LiteralNumber" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberBin" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberFloat" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberHex" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberInteger" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberIntegerLong" style="#ff9f43"/>
|
||||
<entry type="LiteralNumberOct" style="#ff9f43"/>
|
||||
<entry type="Operator" style="#ff6ac1"/>
|
||||
<entry type="OperatorWord" style="#ff6ac1"/>
|
||||
<entry type="Punctuation" style="#e2e4e5"/>
|
||||
<entry type="Comment" style="#78787e"/>
|
||||
<entry type="CommentHashbang" style="#78787e"/>
|
||||
<entry type="CommentMultiline" style="#78787e"/>
|
||||
<entry type="CommentSingle" style="#78787e"/>
|
||||
<entry type="CommentSpecial" style="#78787e"/>
|
||||
<entry type="CommentPreproc" style="#78787e"/>
|
||||
<entry type="Generic" style="#e2e4e5"/>
|
||||
<entry type="GenericDeleted" style="#ff5c57"/>
|
||||
<entry type="GenericEmph" style="underline #e2e4e5"/>
|
||||
<entry type="GenericError" style="#ff5c57"/>
|
||||
<entry type="GenericHeading" style="bold #e2e4e5"/>
|
||||
<entry type="GenericInserted" style="bold #e2e4e5"/>
|
||||
<entry type="GenericOutput" style="#43454f"/>
|
||||
<entry type="GenericPrompt" style="#e2e4e5"/>
|
||||
<entry type="GenericStrong" style="italic #e2e4e5"/>
|
||||
<entry type="GenericSubheading" style="bold #e2e4e5"/>
|
||||
<entry type="GenericTraceback" style="#e2e4e5"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#e2e4e5"/>
|
||||
<entry type="TextWhitespace" style="#e2e4e5"/>
|
||||
</style>
|
@ -1,33 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Borland style.
|
||||
var Borland = Register(chroma.MustNewStyle("borland", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #008800",
|
||||
chroma.CommentPreproc: "noitalic #008080",
|
||||
chroma.CommentSpecial: "noitalic bold",
|
||||
chroma.LiteralString: "#0000FF",
|
||||
chroma.LiteralStringChar: "#800080",
|
||||
chroma.LiteralNumber: "#0000FF",
|
||||
chroma.Keyword: "bold #000080",
|
||||
chroma.OperatorWord: "bold",
|
||||
chroma.NameTag: "bold #000080",
|
||||
chroma.NameAttribute: "#FF0000",
|
||||
chroma.GenericHeading: "#999999",
|
||||
chroma.GenericSubheading: "#aaaaaa",
|
||||
chroma.GenericDeleted: "bg:#ffdddd #000000",
|
||||
chroma.GenericInserted: "bg:#ddffdd #000000",
|
||||
chroma.GenericError: "#aa0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "#555555",
|
||||
chroma.GenericOutput: "#888888",
|
||||
chroma.GenericTraceback: "#aa0000",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#e3d2d2 #a61717",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
26
styles/borland.xml
Normal file
26
styles/borland.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<style name="borland">
|
||||
<entry type="Error" style="#a61717 bg:#e3d2d2"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #000080"/>
|
||||
<entry type="NameAttribute" style="#ff0000"/>
|
||||
<entry type="NameTag" style="bold #000080"/>
|
||||
<entry type="LiteralString" style="#0000ff"/>
|
||||
<entry type="LiteralStringChar" style="#800080"/>
|
||||
<entry type="LiteralNumber" style="#0000ff"/>
|
||||
<entry type="OperatorWord" style="bold"/>
|
||||
<entry type="Comment" style="italic #008800"/>
|
||||
<entry type="CommentSpecial" style="bold noitalic"/>
|
||||
<entry type="CommentPreproc" style="noitalic #008080"/>
|
||||
<entry type="GenericDeleted" style="#000000 bg:#ffdddd"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#aa0000"/>
|
||||
<entry type="GenericHeading" style="#999999"/>
|
||||
<entry type="GenericInserted" style="#000000 bg:#ddffdd"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="#555555"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#aaaaaa"/>
|
||||
<entry type="GenericTraceback" style="#aa0000"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
30
styles/bw.go
30
styles/bw.go
@ -1,30 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// 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",
|
||||
}))
|
23
styles/bw.xml
Normal file
23
styles/bw.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<style name="bw">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="nobold"/>
|
||||
<entry type="NameClass" style="bold"/>
|
||||
<entry type="NameEntity" style="bold"/>
|
||||
<entry type="NameException" style="bold"/>
|
||||
<entry type="NameNamespace" style="bold"/>
|
||||
<entry type="NameTag" style="bold"/>
|
||||
<entry type="LiteralString" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold"/>
|
||||
<entry type="LiteralStringInterpol" style="bold"/>
|
||||
<entry type="OperatorWord" style="bold"/>
|
||||
<entry type="Comment" style="italic"/>
|
||||
<entry type="CommentPreproc" style="noitalic"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericHeading" style="bold"/>
|
||||
<entry type="GenericPrompt" style="bold"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold"/>
|
||||
</style>
|
@ -1,71 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
ctpFrappePink = "#f4b8e4"
|
||||
ctpFrappeMauve = "#ca9ee6"
|
||||
ctpFrappeRed = "#e78284"
|
||||
ctpFrappeMaroon = "#ea999c"
|
||||
ctpFrappePeach = "#ef9f76"
|
||||
ctpFrappeYellow = "#e5c890"
|
||||
ctpFrappeGreen = "#a6d189"
|
||||
ctpFrappeSky = "#99d1db"
|
||||
ctpFrappeBlue = "#8caaee"
|
||||
ctpFrappeLavender = "#babbf1"
|
||||
ctpFrappeText = "#c6d0f5"
|
||||
ctpFrappeOverlay0 = "#737994"
|
||||
ctpFrappeSurface2 = "#626880"
|
||||
ctpFrappeSurface0 = "#414559"
|
||||
ctpFrappeBase = "#303446"
|
||||
)
|
||||
|
||||
// CatppuccinFrappe a soothing low-saturation, low-contrast dark pastel theme for the high-spirited
|
||||
var CatppuccinFrappe = Register(chroma.MustNewStyle("catppuccin-frappe", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: ctpFrappeSurface0,
|
||||
chroma.Comment: "italic " + ctpFrappeSurface2,
|
||||
chroma.CommentPreproc: ctpFrappeBlue,
|
||||
chroma.Keyword: ctpFrappeMauve,
|
||||
chroma.KeywordPseudo: "bold " + ctpFrappeMauve,
|
||||
chroma.KeywordType: ctpFrappeYellow,
|
||||
chroma.KeywordConstant: "italic " + ctpFrappeMauve,
|
||||
chroma.Operator: ctpFrappeSky,
|
||||
chroma.OperatorWord: "bold " + ctpFrappeSky,
|
||||
chroma.Name: ctpFrappeLavender,
|
||||
chroma.NameBuiltin: "italic " + ctpFrappeText,
|
||||
chroma.NameFunction: ctpFrappeSky,
|
||||
chroma.NameClass: ctpFrappeYellow,
|
||||
chroma.NameNamespace: ctpFrappeYellow,
|
||||
chroma.NameException: ctpFrappeMaroon,
|
||||
chroma.NameVariable: ctpFrappePeach,
|
||||
chroma.NameConstant: ctpFrappeYellow,
|
||||
chroma.NameLabel: ctpFrappeYellow,
|
||||
chroma.NameEntity: ctpFrappePink,
|
||||
chroma.NameAttribute: ctpFrappeYellow,
|
||||
chroma.NameTag: ctpFrappeMauve,
|
||||
chroma.NameDecorator: ctpFrappePink,
|
||||
chroma.NameOther: ctpFrappePeach,
|
||||
chroma.Punctuation: ctpFrappeText,
|
||||
chroma.LiteralString: ctpFrappeGreen,
|
||||
chroma.LiteralStringDoc: ctpFrappeGreen,
|
||||
chroma.LiteralStringInterpol: ctpFrappeGreen,
|
||||
chroma.LiteralStringEscape: ctpFrappeBlue,
|
||||
chroma.LiteralStringRegex: ctpFrappeBlue,
|
||||
chroma.LiteralStringSymbol: ctpFrappeGreen,
|
||||
chroma.LiteralStringOther: ctpFrappeGreen,
|
||||
chroma.LiteralNumber: ctpFrappePeach,
|
||||
chroma.GenericHeading: "bold " + ctpFrappeSky,
|
||||
chroma.GenericSubheading: "bold " + ctpFrappeSky,
|
||||
chroma.GenericDeleted: ctpFrappeMaroon,
|
||||
chroma.GenericInserted: ctpFrappeGreen,
|
||||
chroma.GenericError: ctpFrappeMaroon,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + ctpFrappeOverlay0,
|
||||
chroma.GenericOutput: ctpFrappePeach,
|
||||
chroma.GenericTraceback: ctpFrappeMaroon,
|
||||
chroma.Error: ctpFrappeRed,
|
||||
chroma.Background: ctpFrappePeach + " bg:" + ctpFrappeBase,
|
||||
}))
|
46
styles/catppuccin-frappe.xml
Normal file
46
styles/catppuccin-frappe.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<style name="catppuccin-frappe">
|
||||
<entry type="Error" style="#e78284"/>
|
||||
<entry type="Background" style="#ef9f76 bg:#303446"/>
|
||||
<entry type="Keyword" style="#ca9ee6"/>
|
||||
<entry type="KeywordConstant" style="italic #ca9ee6"/>
|
||||
<entry type="KeywordPseudo" style="bold #ca9ee6"/>
|
||||
<entry type="KeywordType" style="#e5c890"/>
|
||||
<entry type="Name" style="#babbf1"/>
|
||||
<entry type="NameAttribute" style="#e5c890"/>
|
||||
<entry type="NameBuiltin" style="italic #c6d0f5"/>
|
||||
<entry type="NameClass" style="#e5c890"/>
|
||||
<entry type="NameConstant" style="#e5c890"/>
|
||||
<entry type="NameDecorator" style="#f4b8e4"/>
|
||||
<entry type="NameEntity" style="#f4b8e4"/>
|
||||
<entry type="NameException" style="#ea999c"/>
|
||||
<entry type="NameFunction" style="#99d1db"/>
|
||||
<entry type="NameLabel" style="#e5c890"/>
|
||||
<entry type="NameNamespace" style="#e5c890"/>
|
||||
<entry type="NameOther" style="#ef9f76"/>
|
||||
<entry type="NameTag" style="#ca9ee6"/>
|
||||
<entry type="NameVariable" style="#ef9f76"/>
|
||||
<entry type="LiteralString" style="#a6d189"/>
|
||||
<entry type="LiteralStringDoc" style="#a6d189"/>
|
||||
<entry type="LiteralStringEscape" style="#8caaee"/>
|
||||
<entry type="LiteralStringInterpol" style="#a6d189"/>
|
||||
<entry type="LiteralStringOther" style="#a6d189"/>
|
||||
<entry type="LiteralStringRegex" style="#8caaee"/>
|
||||
<entry type="LiteralStringSymbol" style="#a6d189"/>
|
||||
<entry type="LiteralNumber" style="#ef9f76"/>
|
||||
<entry type="Operator" style="#99d1db"/>
|
||||
<entry type="OperatorWord" style="bold #99d1db"/>
|
||||
<entry type="Punctuation" style="#c6d0f5"/>
|
||||
<entry type="Comment" style="italic #626880"/>
|
||||
<entry type="CommentPreproc" style="#8caaee"/>
|
||||
<entry type="GenericDeleted" style="#ea999c"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ea999c"/>
|
||||
<entry type="GenericHeading" style="bold #99d1db"/>
|
||||
<entry type="GenericInserted" style="#a6d189"/>
|
||||
<entry type="GenericOutput" style="#ef9f76"/>
|
||||
<entry type="GenericPrompt" style="bold #737994"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #99d1db"/>
|
||||
<entry type="GenericTraceback" style="#ea999c"/>
|
||||
<entry type="TextWhitespace" style="#414559"/>
|
||||
</style>
|
@ -1,71 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
ctpLattePink = "#ea76cb"
|
||||
ctpLatteMauve = "#8839ef"
|
||||
ctpLatteRed = "#d20f39"
|
||||
ctpLatteMaroon = "#e64553"
|
||||
ctpLattePeach = "#fe640b"
|
||||
ctpLatteYellow = "#df8e1d"
|
||||
ctpLatteGreen = "#40a02b"
|
||||
ctpLatteSky = "#04a5e5"
|
||||
ctpLatteBlue = "#1e66f5"
|
||||
ctpLatteLavender = "#7287fd"
|
||||
ctpLatteText = "#4c4f69"
|
||||
ctpLatteOverlay0 = "#9ca0b0"
|
||||
ctpLatteSurface2 = "#acb0be"
|
||||
ctpLatteSurface0 = "#ccd0da"
|
||||
ctpLatteBase = "#eff1f5"
|
||||
)
|
||||
|
||||
// CatppuccinLatte a soothing light pastel theme for the high-spirited
|
||||
var CatppuccinLatte = Register(chroma.MustNewStyle("catppuccin-latte", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: ctpLatteSurface0,
|
||||
chroma.Comment: "italic " + ctpLatteSurface2,
|
||||
chroma.CommentPreproc: ctpLatteBlue,
|
||||
chroma.Keyword: ctpLatteMauve,
|
||||
chroma.KeywordPseudo: "bold " + ctpLatteMauve,
|
||||
chroma.KeywordType: ctpLatteYellow,
|
||||
chroma.KeywordConstant: "italic " + ctpLatteMauve,
|
||||
chroma.Operator: ctpLatteSky,
|
||||
chroma.OperatorWord: "bold " + ctpLatteSky,
|
||||
chroma.Name: ctpLatteLavender,
|
||||
chroma.NameBuiltin: "italic " + ctpLattePeach,
|
||||
chroma.NameFunction: ctpLatteSky,
|
||||
chroma.NameClass: ctpLatteYellow,
|
||||
chroma.NameNamespace: ctpLatteYellow,
|
||||
chroma.NameException: ctpLatteMaroon,
|
||||
chroma.NameVariable: ctpLattePeach,
|
||||
chroma.NameConstant: ctpLatteYellow,
|
||||
chroma.NameLabel: ctpLatteYellow,
|
||||
chroma.NameEntity: ctpLattePink,
|
||||
chroma.NameAttribute: ctpLatteYellow,
|
||||
chroma.NameTag: ctpLatteMauve,
|
||||
chroma.NameDecorator: ctpLattePink,
|
||||
chroma.NameOther: ctpLattePeach,
|
||||
chroma.Punctuation: ctpLatteText,
|
||||
chroma.LiteralString: ctpLatteGreen,
|
||||
chroma.LiteralStringDoc: ctpLatteGreen,
|
||||
chroma.LiteralStringInterpol: ctpLatteGreen,
|
||||
chroma.LiteralStringEscape: ctpLatteBlue,
|
||||
chroma.LiteralStringRegex: ctpLatteBlue,
|
||||
chroma.LiteralStringSymbol: ctpLatteGreen,
|
||||
chroma.LiteralStringOther: ctpLatteGreen,
|
||||
chroma.LiteralNumber: ctpLattePeach,
|
||||
chroma.GenericHeading: "bold " + ctpLatteSky,
|
||||
chroma.GenericSubheading: "bold " + ctpLatteSky,
|
||||
chroma.GenericDeleted: ctpLatteMaroon,
|
||||
chroma.GenericInserted: ctpLatteGreen,
|
||||
chroma.GenericError: ctpLatteMaroon,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + ctpLatteOverlay0,
|
||||
chroma.GenericOutput: ctpLattePeach,
|
||||
chroma.GenericTraceback: ctpLatteMaroon,
|
||||
chroma.Error: ctpLatteRed,
|
||||
chroma.Background: ctpLattePeach + " bg:" + ctpLatteBase,
|
||||
}))
|
46
styles/catppuccin-latte.xml
Normal file
46
styles/catppuccin-latte.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<style name="catppuccin-latte">
|
||||
<entry type="Error" style="#d20f39"/>
|
||||
<entry type="Background" style="#fe640b bg:#eff1f5"/>
|
||||
<entry type="Keyword" style="#8839ef"/>
|
||||
<entry type="KeywordConstant" style="italic #8839ef"/>
|
||||
<entry type="KeywordPseudo" style="bold #8839ef"/>
|
||||
<entry type="KeywordType" style="#df8e1d"/>
|
||||
<entry type="Name" style="#7287fd"/>
|
||||
<entry type="NameAttribute" style="#df8e1d"/>
|
||||
<entry type="NameBuiltin" style="italic #fe640b"/>
|
||||
<entry type="NameClass" style="#df8e1d"/>
|
||||
<entry type="NameConstant" style="#df8e1d"/>
|
||||
<entry type="NameDecorator" style="#ea76cb"/>
|
||||
<entry type="NameEntity" style="#ea76cb"/>
|
||||
<entry type="NameException" style="#e64553"/>
|
||||
<entry type="NameFunction" style="#04a5e5"/>
|
||||
<entry type="NameLabel" style="#df8e1d"/>
|
||||
<entry type="NameNamespace" style="#df8e1d"/>
|
||||
<entry type="NameOther" style="#fe640b"/>
|
||||
<entry type="NameTag" style="#8839ef"/>
|
||||
<entry type="NameVariable" style="#fe640b"/>
|
||||
<entry type="LiteralString" style="#40a02b"/>
|
||||
<entry type="LiteralStringDoc" style="#40a02b"/>
|
||||
<entry type="LiteralStringEscape" style="#1e66f5"/>
|
||||
<entry type="LiteralStringInterpol" style="#40a02b"/>
|
||||
<entry type="LiteralStringOther" style="#40a02b"/>
|
||||
<entry type="LiteralStringRegex" style="#1e66f5"/>
|
||||
<entry type="LiteralStringSymbol" style="#40a02b"/>
|
||||
<entry type="LiteralNumber" style="#fe640b"/>
|
||||
<entry type="Operator" style="#04a5e5"/>
|
||||
<entry type="OperatorWord" style="bold #04a5e5"/>
|
||||
<entry type="Punctuation" style="#4c4f69"/>
|
||||
<entry type="Comment" style="italic #acb0be"/>
|
||||
<entry type="CommentPreproc" style="#1e66f5"/>
|
||||
<entry type="GenericDeleted" style="#e64553"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#e64553"/>
|
||||
<entry type="GenericHeading" style="bold #04a5e5"/>
|
||||
<entry type="GenericInserted" style="#40a02b"/>
|
||||
<entry type="GenericOutput" style="#fe640b"/>
|
||||
<entry type="GenericPrompt" style="bold #9ca0b0"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #04a5e5"/>
|
||||
<entry type="GenericTraceback" style="#e64553"/>
|
||||
<entry type="TextWhitespace" style="#ccd0da"/>
|
||||
</style>
|
@ -1,71 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
ctpMacchiatoPink = "#f5bde6"
|
||||
ctpMacchiatoMauve = "#c6a0f6"
|
||||
ctpMacchiatoRed = "#ed8796"
|
||||
ctpMacchiatoMaroon = "#ee99a0"
|
||||
ctpMacchiatoPeach = "#f5a97f"
|
||||
ctpMacchiatoYellow = "#eed49f"
|
||||
ctpMacchiatoGreen = "#a6da95"
|
||||
ctpMacchiatoSky = "#91d7e3"
|
||||
ctpMacchiatoBlue = "#8aadf4"
|
||||
ctpMacchiatoLavender = "#b7bdf8"
|
||||
ctpMacchiatoText = "#cad3f5"
|
||||
ctpMacchiatoOverlay0 = "#6e738d"
|
||||
ctpMacchiatoSurface2 = "#5b6078"
|
||||
ctpMacchiatoSurface0 = "#363a4f"
|
||||
ctpMacchiatoBase = "#24273a"
|
||||
)
|
||||
|
||||
// CatppuccinMacchiato a soothing mid-saturation, mid-contrast dark pastel theme for the high-spirited
|
||||
var CatppuccinMacchiato = Register(chroma.MustNewStyle("catppuccin-macchiato", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: ctpMacchiatoSurface0,
|
||||
chroma.Comment: "italic " + ctpMacchiatoSurface2,
|
||||
chroma.CommentPreproc: ctpMacchiatoBlue,
|
||||
chroma.Keyword: ctpMacchiatoMauve,
|
||||
chroma.KeywordPseudo: "bold " + ctpMacchiatoMauve,
|
||||
chroma.KeywordType: ctpMacchiatoYellow,
|
||||
chroma.KeywordConstant: "italic " + ctpMacchiatoMauve,
|
||||
chroma.Operator: ctpMacchiatoSky,
|
||||
chroma.OperatorWord: "bold " + ctpMacchiatoSky,
|
||||
chroma.Name: ctpMacchiatoLavender,
|
||||
chroma.NameBuiltin: "italic " + ctpMacchiatoPeach,
|
||||
chroma.NameFunction: ctpMacchiatoSky,
|
||||
chroma.NameClass: ctpMacchiatoYellow,
|
||||
chroma.NameNamespace: ctpMacchiatoYellow,
|
||||
chroma.NameException: ctpMacchiatoMaroon,
|
||||
chroma.NameVariable: ctpMacchiatoPeach,
|
||||
chroma.NameConstant: ctpMacchiatoYellow,
|
||||
chroma.NameLabel: ctpMacchiatoYellow,
|
||||
chroma.NameEntity: ctpMacchiatoPink,
|
||||
chroma.NameAttribute: ctpMacchiatoYellow,
|
||||
chroma.NameTag: ctpMacchiatoMauve,
|
||||
chroma.NameDecorator: ctpMacchiatoPink,
|
||||
chroma.NameOther: ctpMacchiatoPeach,
|
||||
chroma.Punctuation: ctpMacchiatoText,
|
||||
chroma.LiteralString: ctpMacchiatoGreen,
|
||||
chroma.LiteralStringDoc: ctpMacchiatoGreen,
|
||||
chroma.LiteralStringInterpol: ctpMacchiatoGreen,
|
||||
chroma.LiteralStringEscape: ctpMacchiatoBlue,
|
||||
chroma.LiteralStringRegex: ctpMacchiatoBlue,
|
||||
chroma.LiteralStringSymbol: ctpMacchiatoGreen,
|
||||
chroma.LiteralStringOther: ctpMacchiatoGreen,
|
||||
chroma.LiteralNumber: ctpMacchiatoPeach,
|
||||
chroma.GenericHeading: "bold " + ctpMacchiatoSky,
|
||||
chroma.GenericSubheading: "bold " + ctpMacchiatoSky,
|
||||
chroma.GenericDeleted: ctpMacchiatoMaroon,
|
||||
chroma.GenericInserted: ctpMacchiatoGreen,
|
||||
chroma.GenericError: ctpMacchiatoMaroon,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + ctpMacchiatoOverlay0,
|
||||
chroma.GenericOutput: ctpMacchiatoPeach,
|
||||
chroma.GenericTraceback: ctpMacchiatoMaroon,
|
||||
chroma.Error: ctpMacchiatoRed,
|
||||
chroma.Background: ctpMacchiatoPeach + " bg:" + ctpMacchiatoBase,
|
||||
}))
|
46
styles/catppuccin-macchiato.xml
Normal file
46
styles/catppuccin-macchiato.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<style name="catppuccin-macchiato">
|
||||
<entry type="Error" style="#ed8796"/>
|
||||
<entry type="Background" style="#f5a97f bg:#24273a"/>
|
||||
<entry type="Keyword" style="#c6a0f6"/>
|
||||
<entry type="KeywordConstant" style="italic #c6a0f6"/>
|
||||
<entry type="KeywordPseudo" style="bold #c6a0f6"/>
|
||||
<entry type="KeywordType" style="#eed49f"/>
|
||||
<entry type="Name" style="#b7bdf8"/>
|
||||
<entry type="NameAttribute" style="#eed49f"/>
|
||||
<entry type="NameBuiltin" style="italic #f5a97f"/>
|
||||
<entry type="NameClass" style="#eed49f"/>
|
||||
<entry type="NameConstant" style="#eed49f"/>
|
||||
<entry type="NameDecorator" style="#f5bde6"/>
|
||||
<entry type="NameEntity" style="#f5bde6"/>
|
||||
<entry type="NameException" style="#ee99a0"/>
|
||||
<entry type="NameFunction" style="#91d7e3"/>
|
||||
<entry type="NameLabel" style="#eed49f"/>
|
||||
<entry type="NameNamespace" style="#eed49f"/>
|
||||
<entry type="NameOther" style="#f5a97f"/>
|
||||
<entry type="NameTag" style="#c6a0f6"/>
|
||||
<entry type="NameVariable" style="#f5a97f"/>
|
||||
<entry type="LiteralString" style="#a6da95"/>
|
||||
<entry type="LiteralStringDoc" style="#a6da95"/>
|
||||
<entry type="LiteralStringEscape" style="#8aadf4"/>
|
||||
<entry type="LiteralStringInterpol" style="#a6da95"/>
|
||||
<entry type="LiteralStringOther" style="#a6da95"/>
|
||||
<entry type="LiteralStringRegex" style="#8aadf4"/>
|
||||
<entry type="LiteralStringSymbol" style="#a6da95"/>
|
||||
<entry type="LiteralNumber" style="#f5a97f"/>
|
||||
<entry type="Operator" style="#91d7e3"/>
|
||||
<entry type="OperatorWord" style="bold #91d7e3"/>
|
||||
<entry type="Punctuation" style="#cad3f5"/>
|
||||
<entry type="Comment" style="italic #5b6078"/>
|
||||
<entry type="CommentPreproc" style="#8aadf4"/>
|
||||
<entry type="GenericDeleted" style="#ee99a0"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ee99a0"/>
|
||||
<entry type="GenericHeading" style="bold #91d7e3"/>
|
||||
<entry type="GenericInserted" style="#a6da95"/>
|
||||
<entry type="GenericOutput" style="#f5a97f"/>
|
||||
<entry type="GenericPrompt" style="bold #6e738d"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #91d7e3"/>
|
||||
<entry type="GenericTraceback" style="#ee99a0"/>
|
||||
<entry type="TextWhitespace" style="#363a4f"/>
|
||||
</style>
|
@ -1,71 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
ctpMochaPink = "#f5c2e7"
|
||||
ctpMochaMauve = "#cba6f7"
|
||||
ctpMochaRed = "#f38ba8"
|
||||
ctpMochaMaroon = "#eba0ac"
|
||||
ctpMochaPeach = "#fab387"
|
||||
ctpMochaYellow = "#f9e2af"
|
||||
ctpMochaGreen = "#a6e3a1"
|
||||
ctpMochaSky = "#89dceb"
|
||||
ctpMochaBlue = "#89b4fa"
|
||||
ctpMochaLavender = "#b4befe"
|
||||
ctpMochaText = "#cdd6f4"
|
||||
ctpMochaOverlay0 = "#6c7086"
|
||||
ctpMochaSurface2 = "#585b70"
|
||||
ctpMochaSurface0 = "#313244"
|
||||
ctpMochaBase = "#1e1e2e"
|
||||
)
|
||||
|
||||
// CatppuccinMocha a soothing high-saturation, high-contrast dark pastel theme for the high-spirited
|
||||
var CatppuccinMocha = Register(chroma.MustNewStyle("catppuccin-mocha", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: ctpMochaSurface0,
|
||||
chroma.Comment: "italic " + ctpMochaSurface2,
|
||||
chroma.CommentPreproc: ctpMochaBlue,
|
||||
chroma.Keyword: ctpMochaMauve,
|
||||
chroma.KeywordPseudo: "bold " + ctpMochaMauve,
|
||||
chroma.KeywordType: ctpMochaYellow,
|
||||
chroma.KeywordConstant: "italic " + ctpMochaMauve,
|
||||
chroma.Operator: ctpMochaSky,
|
||||
chroma.OperatorWord: "bold " + ctpMochaSky,
|
||||
chroma.Name: ctpMochaLavender,
|
||||
chroma.NameBuiltin: "italic " + ctpMochaPeach,
|
||||
chroma.NameFunction: ctpMochaSky,
|
||||
chroma.NameClass: ctpMochaYellow,
|
||||
chroma.NameNamespace: ctpMochaYellow,
|
||||
chroma.NameException: ctpMochaMaroon,
|
||||
chroma.NameVariable: ctpMochaPeach,
|
||||
chroma.NameConstant: ctpMochaYellow,
|
||||
chroma.NameLabel: ctpMochaYellow,
|
||||
chroma.NameEntity: ctpMochaPink,
|
||||
chroma.NameAttribute: ctpMochaYellow,
|
||||
chroma.NameTag: ctpMochaMauve,
|
||||
chroma.NameDecorator: ctpMochaPink,
|
||||
chroma.NameOther: ctpMochaPeach,
|
||||
chroma.Punctuation: ctpMochaText,
|
||||
chroma.LiteralString: ctpMochaGreen,
|
||||
chroma.LiteralStringDoc: ctpMochaGreen,
|
||||
chroma.LiteralStringInterpol: ctpMochaGreen,
|
||||
chroma.LiteralStringEscape: ctpMochaBlue,
|
||||
chroma.LiteralStringRegex: ctpMochaBlue,
|
||||
chroma.LiteralStringSymbol: ctpMochaGreen,
|
||||
chroma.LiteralStringOther: ctpMochaGreen,
|
||||
chroma.LiteralNumber: ctpMochaPeach,
|
||||
chroma.GenericHeading: "bold " + ctpMochaSky,
|
||||
chroma.GenericSubheading: "bold " + ctpMochaSky,
|
||||
chroma.GenericDeleted: ctpMochaMaroon,
|
||||
chroma.GenericInserted: ctpMochaGreen,
|
||||
chroma.GenericError: ctpMochaMaroon,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + ctpMochaOverlay0,
|
||||
chroma.GenericOutput: ctpMochaPeach,
|
||||
chroma.GenericTraceback: ctpMochaMaroon,
|
||||
chroma.Error: ctpMochaRed,
|
||||
chroma.Background: ctpMochaPeach + " bg:" + ctpMochaBase,
|
||||
}))
|
46
styles/catppuccin-mocha.xml
Normal file
46
styles/catppuccin-mocha.xml
Normal file
@ -0,0 +1,46 @@
|
||||
<style name="catppuccin-mocha">
|
||||
<entry type="Error" style="#f38ba8"/>
|
||||
<entry type="Background" style="#fab387 bg:#1e1e2e"/>
|
||||
<entry type="Keyword" style="#cba6f7"/>
|
||||
<entry type="KeywordConstant" style="italic #cba6f7"/>
|
||||
<entry type="KeywordPseudo" style="bold #cba6f7"/>
|
||||
<entry type="KeywordType" style="#f9e2af"/>
|
||||
<entry type="Name" style="#b4befe"/>
|
||||
<entry type="NameAttribute" style="#f9e2af"/>
|
||||
<entry type="NameBuiltin" style="italic #fab387"/>
|
||||
<entry type="NameClass" style="#f9e2af"/>
|
||||
<entry type="NameConstant" style="#f9e2af"/>
|
||||
<entry type="NameDecorator" style="#f5c2e7"/>
|
||||
<entry type="NameEntity" style="#f5c2e7"/>
|
||||
<entry type="NameException" style="#eba0ac"/>
|
||||
<entry type="NameFunction" style="#89dceb"/>
|
||||
<entry type="NameLabel" style="#f9e2af"/>
|
||||
<entry type="NameNamespace" style="#f9e2af"/>
|
||||
<entry type="NameOther" style="#fab387"/>
|
||||
<entry type="NameTag" style="#cba6f7"/>
|
||||
<entry type="NameVariable" style="#fab387"/>
|
||||
<entry type="LiteralString" style="#a6e3a1"/>
|
||||
<entry type="LiteralStringDoc" style="#a6e3a1"/>
|
||||
<entry type="LiteralStringEscape" style="#89b4fa"/>
|
||||
<entry type="LiteralStringInterpol" style="#a6e3a1"/>
|
||||
<entry type="LiteralStringOther" style="#a6e3a1"/>
|
||||
<entry type="LiteralStringRegex" style="#89b4fa"/>
|
||||
<entry type="LiteralStringSymbol" style="#a6e3a1"/>
|
||||
<entry type="LiteralNumber" style="#fab387"/>
|
||||
<entry type="Operator" style="#89dceb"/>
|
||||
<entry type="OperatorWord" style="bold #89dceb"/>
|
||||
<entry type="Punctuation" style="#cdd6f4"/>
|
||||
<entry type="Comment" style="italic #585b70"/>
|
||||
<entry type="CommentPreproc" style="#89b4fa"/>
|
||||
<entry type="GenericDeleted" style="#eba0ac"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#eba0ac"/>
|
||||
<entry type="GenericHeading" style="bold #89dceb"/>
|
||||
<entry type="GenericInserted" style="#a6e3a1"/>
|
||||
<entry type="GenericOutput" style="#fab387"/>
|
||||
<entry type="GenericPrompt" style="bold #6c7086"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #89dceb"/>
|
||||
<entry type="GenericTraceback" style="#eba0ac"/>
|
||||
<entry type="TextWhitespace" style="#313244"/>
|
||||
</style>
|
@ -1,59 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Colorful style.
|
||||
var Colorful = Register(chroma.MustNewStyle("colorful", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "#888",
|
||||
chroma.CommentPreproc: "#579",
|
||||
chroma.CommentSpecial: "bold #cc0000",
|
||||
chroma.Keyword: "bold #080",
|
||||
chroma.KeywordPseudo: "#038",
|
||||
chroma.KeywordType: "#339",
|
||||
chroma.Operator: "#333",
|
||||
chroma.OperatorWord: "bold #000",
|
||||
chroma.NameBuiltin: "#007020",
|
||||
chroma.NameFunction: "bold #06B",
|
||||
chroma.NameClass: "bold #B06",
|
||||
chroma.NameNamespace: "bold #0e84b5",
|
||||
chroma.NameException: "bold #F00",
|
||||
chroma.NameVariable: "#963",
|
||||
chroma.NameVariableInstance: "#33B",
|
||||
chroma.NameVariableClass: "#369",
|
||||
chroma.NameVariableGlobal: "bold #d70",
|
||||
chroma.NameConstant: "bold #036",
|
||||
chroma.NameLabel: "bold #970",
|
||||
chroma.NameEntity: "bold #800",
|
||||
chroma.NameAttribute: "#00C",
|
||||
chroma.NameTag: "#070",
|
||||
chroma.NameDecorator: "bold #555",
|
||||
chroma.LiteralString: "bg:#fff0f0",
|
||||
chroma.LiteralStringChar: "#04D bg:",
|
||||
chroma.LiteralStringDoc: "#D42 bg:",
|
||||
chroma.LiteralStringInterpol: "bg:#eee",
|
||||
chroma.LiteralStringEscape: "bold #666",
|
||||
chroma.LiteralStringRegex: "bg:#fff0ff #000",
|
||||
chroma.LiteralStringSymbol: "#A60 bg:",
|
||||
chroma.LiteralStringOther: "#D20",
|
||||
chroma.LiteralNumber: "bold #60E",
|
||||
chroma.LiteralNumberInteger: "bold #00D",
|
||||
chroma.LiteralNumberFloat: "bold #60E",
|
||||
chroma.LiteralNumberHex: "bold #058",
|
||||
chroma.LiteralNumberOct: "bold #40E",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#A00000",
|
||||
chroma.GenericInserted: "#00A000",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #c65d09",
|
||||
chroma.GenericOutput: "#888",
|
||||
chroma.GenericTraceback: "#04D",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#F00 bg:#FAA",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
52
styles/colorful.xml
Normal file
52
styles/colorful.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<style name="colorful">
|
||||
<entry type="Error" style="#ff0000 bg:#ffaaaa"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #008800"/>
|
||||
<entry type="KeywordPseudo" style="#003388"/>
|
||||
<entry type="KeywordType" style="#333399"/>
|
||||
<entry type="NameAttribute" style="#0000cc"/>
|
||||
<entry type="NameBuiltin" style="#007020"/>
|
||||
<entry type="NameClass" style="bold #bb0066"/>
|
||||
<entry type="NameConstant" style="bold #003366"/>
|
||||
<entry type="NameDecorator" style="bold #555555"/>
|
||||
<entry type="NameEntity" style="bold #880000"/>
|
||||
<entry type="NameException" style="bold #ff0000"/>
|
||||
<entry type="NameFunction" style="bold #0066bb"/>
|
||||
<entry type="NameLabel" style="bold #997700"/>
|
||||
<entry type="NameNamespace" style="bold #0e84b5"/>
|
||||
<entry type="NameTag" style="#007700"/>
|
||||
<entry type="NameVariable" style="#996633"/>
|
||||
<entry type="NameVariableClass" style="#336699"/>
|
||||
<entry type="NameVariableGlobal" style="bold #dd7700"/>
|
||||
<entry type="NameVariableInstance" style="#3333bb"/>
|
||||
<entry type="LiteralString" style="bg:#fff0f0"/>
|
||||
<entry type="LiteralStringChar" style="#0044dd"/>
|
||||
<entry type="LiteralStringDoc" style="#dd4422"/>
|
||||
<entry type="LiteralStringEscape" style="bold #666666"/>
|
||||
<entry type="LiteralStringInterpol" style="bg:#eeeeee"/>
|
||||
<entry type="LiteralStringOther" style="#dd2200"/>
|
||||
<entry type="LiteralStringRegex" style="#000000 bg:#fff0ff"/>
|
||||
<entry type="LiteralStringSymbol" style="#aa6600"/>
|
||||
<entry type="LiteralNumber" style="bold #6600ee"/>
|
||||
<entry type="LiteralNumberFloat" style="bold #6600ee"/>
|
||||
<entry type="LiteralNumberHex" style="bold #005588"/>
|
||||
<entry type="LiteralNumberInteger" style="bold #0000dd"/>
|
||||
<entry type="LiteralNumberOct" style="bold #4400ee"/>
|
||||
<entry type="Operator" style="#333333"/>
|
||||
<entry type="OperatorWord" style="bold #000000"/>
|
||||
<entry type="Comment" style="#888888"/>
|
||||
<entry type="CommentSpecial" style="bold #cc0000"/>
|
||||
<entry type="CommentPreproc" style="#557799"/>
|
||||
<entry type="GenericDeleted" style="#a00000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00a000"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="bold #c65d09"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#0044dd"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
66
styles/compat.go
Normal file
66
styles/compat.go
Normal file
@ -0,0 +1,66 @@
|
||||
package styles
|
||||
|
||||
// Present for backwards compatibility.
|
||||
//
|
||||
// Deprecated: use styles.Get(name) instead.
|
||||
var (
|
||||
Abap = Registry["abap"]
|
||||
Algol = Registry["algol"]
|
||||
AlgolNu = Registry["algol_nu"]
|
||||
Arduino = Registry["arduino"]
|
||||
Autumn = Registry["autumn"]
|
||||
Average = Registry["average"]
|
||||
Base16Snazzy = Registry["base16-snazzy"]
|
||||
Borland = Registry["borland"]
|
||||
BlackWhite = Registry["bw"]
|
||||
CatppuccinFrappe = Registry["catppuccin-frappe"]
|
||||
CatppuccinLatte = Registry["catppuccin-latte"]
|
||||
CatppuccinMacchiato = Registry["catppuccin-macchiato"]
|
||||
CatppuccinMocha = Registry["catppuccin-mocha"]
|
||||
Colorful = Registry["colorful"]
|
||||
DoomOne = Registry["doom-one"]
|
||||
DoomOne2 = Registry["doom-one2"]
|
||||
Dracula = Registry["dracula"]
|
||||
Emacs = Registry["emacs"]
|
||||
Friendly = Registry["friendly"]
|
||||
Fruity = Registry["fruity"]
|
||||
GitHubDark = Registry["github-dark"]
|
||||
GitHub = Registry["github"]
|
||||
GruvboxLight = Registry["gruvbox-light"]
|
||||
Gruvbox = Registry["gruvbox"]
|
||||
HrDark = Registry["hrdark"]
|
||||
HrHighContrast = Registry["hr_high_contrast"]
|
||||
Igor = Registry["igor"]
|
||||
Lovelace = Registry["lovelace"]
|
||||
Manni = Registry["manni"]
|
||||
ModusOperandi = Registry["modus-operandi"]
|
||||
ModusVivendi = Registry["modus-vivendi"]
|
||||
Monokai = Registry["monokai"]
|
||||
MonokaiLight = Registry["monokailight"]
|
||||
Murphy = Registry["murphy"]
|
||||
Native = Registry["native"]
|
||||
Nord = Registry["nord"]
|
||||
OnesEnterprise = Registry["onesenterprise"]
|
||||
ParaisoDark = Registry["paraiso-dark"]
|
||||
ParaisoLight = Registry["paraiso-light"]
|
||||
Pastie = Registry["pastie"]
|
||||
Perldoc = Registry["perldoc"]
|
||||
Pygments = Registry["pygments"]
|
||||
RainbowDash = Registry["rainbow_dash"]
|
||||
RosePineDawn = Registry["rose-pine-dawn"]
|
||||
RosePineMoon = Registry["rose-pine-moon"]
|
||||
RosePine = Registry["rose-pine"]
|
||||
Rrt = Registry["rrt"]
|
||||
SolarizedDark = Registry["solarized-dark"]
|
||||
SolarizedDark256 = Registry["solarized-dark256"]
|
||||
SolarizedLight = Registry["solarized-light"]
|
||||
SwapOff = Registry["swapoff"]
|
||||
Tango = Registry["tango"]
|
||||
Trac = Registry["trac"]
|
||||
Vim = Registry["vim"]
|
||||
VisualStudio = Registry["vs"]
|
||||
Vulcan = Registry["vulcan"]
|
||||
WitchHazel = Registry["witchhazel"]
|
||||
XcodeDark = Registry["xcode-dark"]
|
||||
Xcode = Registry["xcode"]
|
||||
)
|
@ -1,58 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Doom One style. Inspired by Atom One and Doom Emacs's Atom One theme
|
||||
var DoomOne = Register(chroma.MustNewStyle("doom-one", chroma.StyleEntries{
|
||||
chroma.Text: "#b0c4de",
|
||||
chroma.Error: "#b0c4de",
|
||||
chroma.Comment: "italic #8a93a5",
|
||||
chroma.CommentHashbang: "bold",
|
||||
chroma.Keyword: "#c678dd",
|
||||
chroma.KeywordType: "#ef8383",
|
||||
chroma.KeywordConstant: "bold #b756ff",
|
||||
chroma.Operator: "#c7bf54",
|
||||
chroma.OperatorWord: "bold #b756ff",
|
||||
chroma.Punctuation: "#b0c4de",
|
||||
chroma.Name: "#c1abea",
|
||||
chroma.NameAttribute: "#b3d23c",
|
||||
chroma.NameBuiltin: "#ef8383",
|
||||
chroma.NameClass: "#76a9f9",
|
||||
chroma.NameConstant: "bold #b756ff",
|
||||
chroma.NameDecorator: "#e5c07b",
|
||||
chroma.NameEntity: "#bda26f",
|
||||
chroma.NameException: "bold #fd7474",
|
||||
chroma.NameFunction: "#00b1f7",
|
||||
chroma.NameProperty: "#cebc3a",
|
||||
chroma.NameLabel: "#f5a40d",
|
||||
chroma.NameNamespace: "#76a9f9",
|
||||
chroma.NameTag: "#e06c75",
|
||||
chroma.NameVariable: "#DCAEEA",
|
||||
chroma.NameVariableGlobal: "bold #DCAEEA",
|
||||
chroma.NameVariableInstance: "#e06c75",
|
||||
chroma.Literal: "#98c379",
|
||||
chroma.Number: "#d19a66",
|
||||
chroma.String: "#98c379",
|
||||
chroma.StringDoc: "#7e97c3",
|
||||
chroma.StringDouble: "#63c381",
|
||||
chroma.StringEscape: "bold #d26464",
|
||||
chroma.StringHeredoc: "#98c379",
|
||||
chroma.StringInterpol: "#98c379",
|
||||
chroma.StringOther: "#70b33f",
|
||||
chroma.StringRegex: "#56b6c2",
|
||||
chroma.StringSingle: "#98c379",
|
||||
chroma.StringSymbol: "#56b6c2",
|
||||
chroma.Generic: "#b0c4de",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #a2cbff",
|
||||
chroma.GenericInserted: "#a6e22e",
|
||||
chroma.GenericOutput: "#a6e22e",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.GenericPrompt: "#a6e22e",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#a2cbff",
|
||||
chroma.GenericTraceback: "#a2cbff",
|
||||
chroma.Background: "#b0c4de bg:#282c34",
|
||||
}))
|
51
styles/doom-one.xml
Normal file
51
styles/doom-one.xml
Normal file
@ -0,0 +1,51 @@
|
||||
<style name="doom-one">
|
||||
<entry type="Error" style="#b0c4de"/>
|
||||
<entry type="Background" style="#b0c4de bg:#282c34"/>
|
||||
<entry type="Keyword" style="#c678dd"/>
|
||||
<entry type="KeywordConstant" style="bold #b756ff"/>
|
||||
<entry type="KeywordType" style="#ef8383"/>
|
||||
<entry type="Name" style="#c1abea"/>
|
||||
<entry type="NameAttribute" style="#b3d23c"/>
|
||||
<entry type="NameBuiltin" style="#ef8383"/>
|
||||
<entry type="NameClass" style="#76a9f9"/>
|
||||
<entry type="NameConstant" style="bold #b756ff"/>
|
||||
<entry type="NameDecorator" style="#e5c07b"/>
|
||||
<entry type="NameEntity" style="#bda26f"/>
|
||||
<entry type="NameException" style="bold #fd7474"/>
|
||||
<entry type="NameFunction" style="#00b1f7"/>
|
||||
<entry type="NameLabel" style="#f5a40d"/>
|
||||
<entry type="NameNamespace" style="#76a9f9"/>
|
||||
<entry type="NameProperty" style="#cebc3a"/>
|
||||
<entry type="NameTag" style="#e06c75"/>
|
||||
<entry type="NameVariable" style="#dcaeea"/>
|
||||
<entry type="NameVariableGlobal" style="bold #dcaeea"/>
|
||||
<entry type="NameVariableInstance" style="#e06c75"/>
|
||||
<entry type="Literal" style="#98c379"/>
|
||||
<entry type="LiteralString" style="#98c379"/>
|
||||
<entry type="LiteralStringDoc" style="#7e97c3"/>
|
||||
<entry type="LiteralStringDouble" style="#63c381"/>
|
||||
<entry type="LiteralStringEscape" style="bold #d26464"/>
|
||||
<entry type="LiteralStringHeredoc" style="#98c379"/>
|
||||
<entry type="LiteralStringInterpol" style="#98c379"/>
|
||||
<entry type="LiteralStringOther" style="#70b33f"/>
|
||||
<entry type="LiteralStringRegex" style="#56b6c2"/>
|
||||
<entry type="LiteralStringSingle" style="#98c379"/>
|
||||
<entry type="LiteralStringSymbol" style="#56b6c2"/>
|
||||
<entry type="LiteralNumber" style="#d19a66"/>
|
||||
<entry type="Operator" style="#c7bf54"/>
|
||||
<entry type="OperatorWord" style="bold #b756ff"/>
|
||||
<entry type="Punctuation" style="#b0c4de"/>
|
||||
<entry type="Comment" style="italic #8a93a5"/>
|
||||
<entry type="CommentHashbang" style="bold"/>
|
||||
<entry type="Generic" style="#b0c4de"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericHeading" style="bold #a2cbff"/>
|
||||
<entry type="GenericInserted" style="#a6e22e"/>
|
||||
<entry type="GenericOutput" style="#a6e22e"/>
|
||||
<entry type="GenericPrompt" style="#a6e22e"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#a2cbff"/>
|
||||
<entry type="GenericTraceback" style="#a2cbff"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#b0c4de"/>
|
||||
</style>
|
@ -1,71 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Doom One 2 style. Inspired by Atom One and Doom Emacs's Atom One theme
|
||||
var DoomOne2 = Register(chroma.MustNewStyle("doom-one2", chroma.StyleEntries{
|
||||
chroma.Text: "#b0c4de",
|
||||
chroma.Error: "#b0c4de",
|
||||
chroma.Comment: "italic #8a93a5",
|
||||
chroma.CommentHashbang: "bold",
|
||||
chroma.Keyword: "#76a9f9",
|
||||
chroma.KeywordConstant: "#e5c07b",
|
||||
chroma.KeywordType: "#e5c07b",
|
||||
chroma.Operator: "#54b1c7",
|
||||
chroma.OperatorWord: "bold #b756ff",
|
||||
chroma.Punctuation: "#abb2bf",
|
||||
chroma.Name: "#aa89ea",
|
||||
chroma.NameAttribute: "#cebc3a",
|
||||
chroma.NameBuiltin: "#e5c07b",
|
||||
chroma.NameClass: "#ca72ff",
|
||||
chroma.NameConstant: "bold",
|
||||
chroma.NameDecorator: "#e5c07b",
|
||||
chroma.NameEntity: "#bda26f",
|
||||
chroma.NameException: "bold #fd7474",
|
||||
chroma.NameFunction: "#00b1f7",
|
||||
chroma.NameProperty: "#cebc3a",
|
||||
chroma.NameLabel: "#f5a40d",
|
||||
chroma.NameNamespace: "#ca72ff",
|
||||
chroma.NameTag: "#76a9f9",
|
||||
chroma.NameVariable: "#DCAEEA",
|
||||
chroma.NameVariableClass: "#DCAEEA",
|
||||
chroma.NameVariableGlobal: "bold #DCAEEA",
|
||||
chroma.NameVariableInstance: "#e06c75",
|
||||
chroma.NameVariableMagic: "#DCAEEA",
|
||||
chroma.Literal: "#98c379",
|
||||
chroma.LiteralDate: "#98c379",
|
||||
chroma.Number: "#d19a66",
|
||||
chroma.NumberBin: "#d19a66",
|
||||
chroma.NumberFloat: "#d19a66",
|
||||
chroma.NumberHex: "#d19a66",
|
||||
chroma.NumberInteger: "#d19a66",
|
||||
chroma.NumberIntegerLong: "#d19a66",
|
||||
chroma.NumberOct: "#d19a66",
|
||||
chroma.String: "#98c379",
|
||||
chroma.StringAffix: "#98c379",
|
||||
chroma.StringBacktick: "#98c379",
|
||||
chroma.StringDelimiter: "#98c379",
|
||||
chroma.StringDoc: "#7e97c3",
|
||||
chroma.StringDouble: "#63c381",
|
||||
chroma.StringEscape: "bold #d26464",
|
||||
chroma.StringHeredoc: "#98c379",
|
||||
chroma.StringInterpol: "#98c379",
|
||||
chroma.StringOther: "#70b33f",
|
||||
chroma.StringRegex: "#56b6c2",
|
||||
chroma.StringSingle: "#98c379",
|
||||
chroma.StringSymbol: "#56b6c2",
|
||||
chroma.Generic: "#b0c4de",
|
||||
chroma.GenericDeleted: "#b0c4de",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #a2cbff",
|
||||
chroma.GenericInserted: "#a6e22e",
|
||||
chroma.GenericOutput: "#a6e22e",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.GenericPrompt: "#a6e22e",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#a2cbff",
|
||||
chroma.GenericTraceback: "#a2cbff",
|
||||
chroma.Background: "#b0c4de bg:#282c34",
|
||||
}))
|
64
styles/doom-one2.xml
Normal file
64
styles/doom-one2.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<style name="doom-one2">
|
||||
<entry type="Error" style="#b0c4de"/>
|
||||
<entry type="Background" style="#b0c4de bg:#282c34"/>
|
||||
<entry type="Keyword" style="#76a9f9"/>
|
||||
<entry type="KeywordConstant" style="#e5c07b"/>
|
||||
<entry type="KeywordType" style="#e5c07b"/>
|
||||
<entry type="Name" style="#aa89ea"/>
|
||||
<entry type="NameAttribute" style="#cebc3a"/>
|
||||
<entry type="NameBuiltin" style="#e5c07b"/>
|
||||
<entry type="NameClass" style="#ca72ff"/>
|
||||
<entry type="NameConstant" style="bold"/>
|
||||
<entry type="NameDecorator" style="#e5c07b"/>
|
||||
<entry type="NameEntity" style="#bda26f"/>
|
||||
<entry type="NameException" style="bold #fd7474"/>
|
||||
<entry type="NameFunction" style="#00b1f7"/>
|
||||
<entry type="NameLabel" style="#f5a40d"/>
|
||||
<entry type="NameNamespace" style="#ca72ff"/>
|
||||
<entry type="NameProperty" style="#cebc3a"/>
|
||||
<entry type="NameTag" style="#76a9f9"/>
|
||||
<entry type="NameVariable" style="#dcaeea"/>
|
||||
<entry type="NameVariableClass" style="#dcaeea"/>
|
||||
<entry type="NameVariableGlobal" style="bold #dcaeea"/>
|
||||
<entry type="NameVariableInstance" style="#e06c75"/>
|
||||
<entry type="NameVariableMagic" style="#dcaeea"/>
|
||||
<entry type="Literal" style="#98c379"/>
|
||||
<entry type="LiteralDate" style="#98c379"/>
|
||||
<entry type="LiteralString" style="#98c379"/>
|
||||
<entry type="LiteralStringAffix" style="#98c379"/>
|
||||
<entry type="LiteralStringBacktick" style="#98c379"/>
|
||||
<entry type="LiteralStringDelimiter" style="#98c379"/>
|
||||
<entry type="LiteralStringDoc" style="#7e97c3"/>
|
||||
<entry type="LiteralStringDouble" style="#63c381"/>
|
||||
<entry type="LiteralStringEscape" style="bold #d26464"/>
|
||||
<entry type="LiteralStringHeredoc" style="#98c379"/>
|
||||
<entry type="LiteralStringInterpol" style="#98c379"/>
|
||||
<entry type="LiteralStringOther" style="#70b33f"/>
|
||||
<entry type="LiteralStringRegex" style="#56b6c2"/>
|
||||
<entry type="LiteralStringSingle" style="#98c379"/>
|
||||
<entry type="LiteralStringSymbol" style="#56b6c2"/>
|
||||
<entry type="LiteralNumber" style="#d19a66"/>
|
||||
<entry type="LiteralNumberBin" style="#d19a66"/>
|
||||
<entry type="LiteralNumberFloat" style="#d19a66"/>
|
||||
<entry type="LiteralNumberHex" style="#d19a66"/>
|
||||
<entry type="LiteralNumberInteger" style="#d19a66"/>
|
||||
<entry type="LiteralNumberIntegerLong" style="#d19a66"/>
|
||||
<entry type="LiteralNumberOct" style="#d19a66"/>
|
||||
<entry type="Operator" style="#54b1c7"/>
|
||||
<entry type="OperatorWord" style="bold #b756ff"/>
|
||||
<entry type="Punctuation" style="#abb2bf"/>
|
||||
<entry type="Comment" style="italic #8a93a5"/>
|
||||
<entry type="CommentHashbang" style="bold"/>
|
||||
<entry type="Generic" style="#b0c4de"/>
|
||||
<entry type="GenericDeleted" style="#b0c4de"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericHeading" style="bold #a2cbff"/>
|
||||
<entry type="GenericInserted" style="#a6e22e"/>
|
||||
<entry type="GenericOutput" style="#a6e22e"/>
|
||||
<entry type="GenericPrompt" style="#a6e22e"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#a2cbff"/>
|
||||
<entry type="GenericTraceback" style="#a2cbff"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#b0c4de"/>
|
||||
</style>
|
@ -1,81 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Dracula Style
|
||||
var Dracula = Register(chroma.MustNewStyle("dracula", chroma.StyleEntries{
|
||||
chroma.Comment: "#6272a4",
|
||||
chroma.CommentHashbang: "#6272a4",
|
||||
chroma.CommentMultiline: "#6272a4",
|
||||
chroma.CommentPreproc: "#ff79c6",
|
||||
chroma.CommentSingle: "#6272a4",
|
||||
chroma.CommentSpecial: "#6272a4",
|
||||
chroma.Generic: "#f8f8f2",
|
||||
chroma.GenericDeleted: "#ff5555",
|
||||
chroma.GenericEmph: "#f8f8f2 underline",
|
||||
chroma.GenericError: "#f8f8f2",
|
||||
chroma.GenericHeading: "#f8f8f2 bold",
|
||||
chroma.GenericInserted: "#50fa7b bold",
|
||||
chroma.GenericOutput: "#44475a",
|
||||
chroma.GenericPrompt: "#f8f8f2",
|
||||
chroma.GenericStrong: "#f8f8f2",
|
||||
chroma.GenericSubheading: "#f8f8f2 bold",
|
||||
chroma.GenericTraceback: "#f8f8f2",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#f8f8f2",
|
||||
chroma.Keyword: "#ff79c6",
|
||||
chroma.KeywordConstant: "#ff79c6",
|
||||
chroma.KeywordDeclaration: "#8be9fd italic",
|
||||
chroma.KeywordNamespace: "#ff79c6",
|
||||
chroma.KeywordPseudo: "#ff79c6",
|
||||
chroma.KeywordReserved: "#ff79c6",
|
||||
chroma.KeywordType: "#8be9fd",
|
||||
chroma.Literal: "#f8f8f2",
|
||||
chroma.LiteralDate: "#f8f8f2",
|
||||
chroma.Name: "#f8f8f2",
|
||||
chroma.NameAttribute: "#50fa7b",
|
||||
chroma.NameBuiltin: "#8be9fd italic",
|
||||
chroma.NameBuiltinPseudo: "#f8f8f2",
|
||||
chroma.NameClass: "#50fa7b",
|
||||
chroma.NameConstant: "#f8f8f2",
|
||||
chroma.NameDecorator: "#f8f8f2",
|
||||
chroma.NameEntity: "#f8f8f2",
|
||||
chroma.NameException: "#f8f8f2",
|
||||
chroma.NameFunction: "#50fa7b",
|
||||
chroma.NameLabel: "#8be9fd italic",
|
||||
chroma.NameNamespace: "#f8f8f2",
|
||||
chroma.NameOther: "#f8f8f2",
|
||||
chroma.NameTag: "#ff79c6",
|
||||
chroma.NameVariable: "#8be9fd italic",
|
||||
chroma.NameVariableClass: "#8be9fd italic",
|
||||
chroma.NameVariableGlobal: "#8be9fd italic",
|
||||
chroma.NameVariableInstance: "#8be9fd italic",
|
||||
chroma.LiteralNumber: "#bd93f9",
|
||||
chroma.LiteralNumberBin: "#bd93f9",
|
||||
chroma.LiteralNumberFloat: "#bd93f9",
|
||||
chroma.LiteralNumberHex: "#bd93f9",
|
||||
chroma.LiteralNumberInteger: "#bd93f9",
|
||||
chroma.LiteralNumberIntegerLong: "#bd93f9",
|
||||
chroma.LiteralNumberOct: "#bd93f9",
|
||||
chroma.Operator: "#ff79c6",
|
||||
chroma.OperatorWord: "#ff79c6",
|
||||
chroma.Other: "#f8f8f2",
|
||||
chroma.Punctuation: "#f8f8f2",
|
||||
chroma.LiteralString: "#f1fa8c",
|
||||
chroma.LiteralStringBacktick: "#f1fa8c",
|
||||
chroma.LiteralStringChar: "#f1fa8c",
|
||||
chroma.LiteralStringDoc: "#f1fa8c",
|
||||
chroma.LiteralStringDouble: "#f1fa8c",
|
||||
chroma.LiteralStringEscape: "#f1fa8c",
|
||||
chroma.LiteralStringHeredoc: "#f1fa8c",
|
||||
chroma.LiteralStringInterpol: "#f1fa8c",
|
||||
chroma.LiteralStringOther: "#f1fa8c",
|
||||
chroma.LiteralStringRegex: "#f1fa8c",
|
||||
chroma.LiteralStringSingle: "#f1fa8c",
|
||||
chroma.LiteralStringSymbol: "#f1fa8c",
|
||||
chroma.Text: "#f8f8f2",
|
||||
chroma.TextWhitespace: "#f8f8f2",
|
||||
chroma.Background: " bg:#282a36",
|
||||
}))
|
74
styles/dracula.xml
Normal file
74
styles/dracula.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<style name="dracula">
|
||||
<entry type="Other" style="#f8f8f2"/>
|
||||
<entry type="Error" style="#f8f8f2"/>
|
||||
<entry type="Background" style="bg:#282a36"/>
|
||||
<entry type="Keyword" style="#ff79c6"/>
|
||||
<entry type="KeywordConstant" style="#ff79c6"/>
|
||||
<entry type="KeywordDeclaration" style="italic #8be9fd"/>
|
||||
<entry type="KeywordNamespace" style="#ff79c6"/>
|
||||
<entry type="KeywordPseudo" style="#ff79c6"/>
|
||||
<entry type="KeywordReserved" style="#ff79c6"/>
|
||||
<entry type="KeywordType" style="#8be9fd"/>
|
||||
<entry type="Name" style="#f8f8f2"/>
|
||||
<entry type="NameAttribute" style="#50fa7b"/>
|
||||
<entry type="NameBuiltin" style="italic #8be9fd"/>
|
||||
<entry type="NameBuiltinPseudo" style="#f8f8f2"/>
|
||||
<entry type="NameClass" style="#50fa7b"/>
|
||||
<entry type="NameConstant" style="#f8f8f2"/>
|
||||
<entry type="NameDecorator" style="#f8f8f2"/>
|
||||
<entry type="NameEntity" style="#f8f8f2"/>
|
||||
<entry type="NameException" style="#f8f8f2"/>
|
||||
<entry type="NameFunction" style="#50fa7b"/>
|
||||
<entry type="NameLabel" style="italic #8be9fd"/>
|
||||
<entry type="NameNamespace" style="#f8f8f2"/>
|
||||
<entry type="NameOther" style="#f8f8f2"/>
|
||||
<entry type="NameTag" style="#ff79c6"/>
|
||||
<entry type="NameVariable" style="italic #8be9fd"/>
|
||||
<entry type="NameVariableClass" style="italic #8be9fd"/>
|
||||
<entry type="NameVariableGlobal" style="italic #8be9fd"/>
|
||||
<entry type="NameVariableInstance" style="italic #8be9fd"/>
|
||||
<entry type="Literal" style="#f8f8f2"/>
|
||||
<entry type="LiteralDate" style="#f8f8f2"/>
|
||||
<entry type="LiteralString" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringBacktick" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringChar" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringDoc" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringDouble" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringEscape" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringHeredoc" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringInterpol" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringOther" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringRegex" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringSingle" style="#f1fa8c"/>
|
||||
<entry type="LiteralStringSymbol" style="#f1fa8c"/>
|
||||
<entry type="LiteralNumber" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberBin" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberFloat" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberHex" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberInteger" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberIntegerLong" style="#bd93f9"/>
|
||||
<entry type="LiteralNumberOct" style="#bd93f9"/>
|
||||
<entry type="Operator" style="#ff79c6"/>
|
||||
<entry type="OperatorWord" style="#ff79c6"/>
|
||||
<entry type="Punctuation" style="#f8f8f2"/>
|
||||
<entry type="Comment" style="#6272a4"/>
|
||||
<entry type="CommentHashbang" style="#6272a4"/>
|
||||
<entry type="CommentMultiline" style="#6272a4"/>
|
||||
<entry type="CommentSingle" style="#6272a4"/>
|
||||
<entry type="CommentSpecial" style="#6272a4"/>
|
||||
<entry type="CommentPreproc" style="#ff79c6"/>
|
||||
<entry type="Generic" style="#f8f8f2"/>
|
||||
<entry type="GenericDeleted" style="#ff5555"/>
|
||||
<entry type="GenericEmph" style="underline #f8f8f2"/>
|
||||
<entry type="GenericError" style="#f8f8f2"/>
|
||||
<entry type="GenericHeading" style="bold #f8f8f2"/>
|
||||
<entry type="GenericInserted" style="bold #50fa7b"/>
|
||||
<entry type="GenericOutput" style="#44475a"/>
|
||||
<entry type="GenericPrompt" style="#f8f8f2"/>
|
||||
<entry type="GenericStrong" style="#f8f8f2"/>
|
||||
<entry type="GenericSubheading" style="bold #f8f8f2"/>
|
||||
<entry type="GenericTraceback" style="#f8f8f2"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#f8f8f2"/>
|
||||
<entry type="TextWhitespace" style="#f8f8f2"/>
|
||||
</style>
|
@ -1,51 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Emacs style.
|
||||
var Emacs = Register(chroma.MustNewStyle("emacs", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #008800",
|
||||
chroma.CommentPreproc: "noitalic",
|
||||
chroma.CommentSpecial: "noitalic bold",
|
||||
chroma.Keyword: "bold #AA22FF",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "bold #00BB00",
|
||||
chroma.Operator: "#666666",
|
||||
chroma.OperatorWord: "bold #AA22FF",
|
||||
chroma.NameBuiltin: "#AA22FF",
|
||||
chroma.NameFunction: "#00A000",
|
||||
chroma.NameClass: "#0000FF",
|
||||
chroma.NameNamespace: "bold #0000FF",
|
||||
chroma.NameException: "bold #D2413A",
|
||||
chroma.NameVariable: "#B8860B",
|
||||
chroma.NameConstant: "#880000",
|
||||
chroma.NameLabel: "#A0A000",
|
||||
chroma.NameEntity: "bold #999999",
|
||||
chroma.NameAttribute: "#BB4444",
|
||||
chroma.NameTag: "bold #008000",
|
||||
chroma.NameDecorator: "#AA22FF",
|
||||
chroma.LiteralString: "#BB4444",
|
||||
chroma.LiteralStringDoc: "italic",
|
||||
chroma.LiteralStringInterpol: "bold #BB6688",
|
||||
chroma.LiteralStringEscape: "bold #BB6622",
|
||||
chroma.LiteralStringRegex: "#BB6688",
|
||||
chroma.LiteralStringSymbol: "#B8860B",
|
||||
chroma.LiteralStringOther: "#008000",
|
||||
chroma.LiteralNumber: "#666666",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#A00000",
|
||||
chroma.GenericInserted: "#00A000",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #000080",
|
||||
chroma.GenericOutput: "#888",
|
||||
chroma.GenericTraceback: "#04D",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "border:#FF0000",
|
||||
chroma.Background: " bg:#f8f8f8",
|
||||
}))
|
44
styles/emacs.xml
Normal file
44
styles/emacs.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<style name="emacs">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Background" style="bg:#f8f8f8"/>
|
||||
<entry type="Keyword" style="bold #aa22ff"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="bold #00bb00"/>
|
||||
<entry type="NameAttribute" style="#bb4444"/>
|
||||
<entry type="NameBuiltin" style="#aa22ff"/>
|
||||
<entry type="NameClass" style="#0000ff"/>
|
||||
<entry type="NameConstant" style="#880000"/>
|
||||
<entry type="NameDecorator" style="#aa22ff"/>
|
||||
<entry type="NameEntity" style="bold #999999"/>
|
||||
<entry type="NameException" style="bold #d2413a"/>
|
||||
<entry type="NameFunction" style="#00a000"/>
|
||||
<entry type="NameLabel" style="#a0a000"/>
|
||||
<entry type="NameNamespace" style="bold #0000ff"/>
|
||||
<entry type="NameTag" style="bold #008000"/>
|
||||
<entry type="NameVariable" style="#b8860b"/>
|
||||
<entry type="LiteralString" style="#bb4444"/>
|
||||
<entry type="LiteralStringDoc" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold #bb6622"/>
|
||||
<entry type="LiteralStringInterpol" style="bold #bb6688"/>
|
||||
<entry type="LiteralStringOther" style="#008000"/>
|
||||
<entry type="LiteralStringRegex" style="#bb6688"/>
|
||||
<entry type="LiteralStringSymbol" style="#b8860b"/>
|
||||
<entry type="LiteralNumber" style="#666666"/>
|
||||
<entry type="Operator" style="#666666"/>
|
||||
<entry type="OperatorWord" style="bold #aa22ff"/>
|
||||
<entry type="Comment" style="italic #008800"/>
|
||||
<entry type="CommentSpecial" style="bold noitalic"/>
|
||||
<entry type="CommentPreproc" style="noitalic"/>
|
||||
<entry type="GenericDeleted" style="#a00000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00a000"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="bold #000080"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#0044dd"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,51 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Friendly style.
|
||||
var Friendly = Register(chroma.MustNewStyle("friendly", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #60a0b0",
|
||||
chroma.CommentPreproc: "noitalic #007020",
|
||||
chroma.CommentSpecial: "noitalic bg:#fff0f0",
|
||||
chroma.Keyword: "bold #007020",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "nobold #902000",
|
||||
chroma.Operator: "#666666",
|
||||
chroma.OperatorWord: "bold #007020",
|
||||
chroma.NameBuiltin: "#007020",
|
||||
chroma.NameFunction: "#06287e",
|
||||
chroma.NameClass: "bold #0e84b5",
|
||||
chroma.NameNamespace: "bold #0e84b5",
|
||||
chroma.NameException: "#007020",
|
||||
chroma.NameVariable: "#bb60d5",
|
||||
chroma.NameConstant: "#60add5",
|
||||
chroma.NameLabel: "bold #002070",
|
||||
chroma.NameEntity: "bold #d55537",
|
||||
chroma.NameAttribute: "#4070a0",
|
||||
chroma.NameTag: "bold #062873",
|
||||
chroma.NameDecorator: "bold #555555",
|
||||
chroma.LiteralString: "#4070a0",
|
||||
chroma.LiteralStringDoc: "italic",
|
||||
chroma.LiteralStringInterpol: "#70a0d0",
|
||||
chroma.LiteralStringEscape: "bold #4070a0",
|
||||
chroma.LiteralStringRegex: "#235388",
|
||||
chroma.LiteralStringSymbol: "#517918",
|
||||
chroma.LiteralStringOther: "#c65d09",
|
||||
chroma.LiteralNumber: "#40a070",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#A00000",
|
||||
chroma.GenericInserted: "#00A000",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #c65d09",
|
||||
chroma.GenericOutput: "#888",
|
||||
chroma.GenericTraceback: "#04D",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "border:#FF0000",
|
||||
chroma.Background: " bg:#f0f0f0",
|
||||
}))
|
44
styles/friendly.xml
Normal file
44
styles/friendly.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<style name="friendly">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Background" style="bg:#f0f0f0"/>
|
||||
<entry type="Keyword" style="bold #007020"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="nobold #902000"/>
|
||||
<entry type="NameAttribute" style="#4070a0"/>
|
||||
<entry type="NameBuiltin" style="#007020"/>
|
||||
<entry type="NameClass" style="bold #0e84b5"/>
|
||||
<entry type="NameConstant" style="#60add5"/>
|
||||
<entry type="NameDecorator" style="bold #555555"/>
|
||||
<entry type="NameEntity" style="bold #d55537"/>
|
||||
<entry type="NameException" style="#007020"/>
|
||||
<entry type="NameFunction" style="#06287e"/>
|
||||
<entry type="NameLabel" style="bold #002070"/>
|
||||
<entry type="NameNamespace" style="bold #0e84b5"/>
|
||||
<entry type="NameTag" style="bold #062873"/>
|
||||
<entry type="NameVariable" style="#bb60d5"/>
|
||||
<entry type="LiteralString" style="#4070a0"/>
|
||||
<entry type="LiteralStringDoc" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold #4070a0"/>
|
||||
<entry type="LiteralStringInterpol" style="#70a0d0"/>
|
||||
<entry type="LiteralStringOther" style="#c65d09"/>
|
||||
<entry type="LiteralStringRegex" style="#235388"/>
|
||||
<entry type="LiteralStringSymbol" style="#517918"/>
|
||||
<entry type="LiteralNumber" style="#40a070"/>
|
||||
<entry type="Operator" style="#666666"/>
|
||||
<entry type="OperatorWord" style="bold #007020"/>
|
||||
<entry type="Comment" style="italic #60a0b0"/>
|
||||
<entry type="CommentSpecial" style="noitalic bg:#fff0f0"/>
|
||||
<entry type="CommentPreproc" style="noitalic #007020"/>
|
||||
<entry type="GenericDeleted" style="#a00000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00a000"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="bold #c65d09"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#0044dd"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,26 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Fruity style.
|
||||
var Fruity = Register(chroma.MustNewStyle("fruity", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#888888",
|
||||
chroma.Background: "#ffffff bg:#111111",
|
||||
chroma.GenericOutput: "#444444 bg:#222222",
|
||||
chroma.Keyword: "#fb660a bold",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.LiteralNumber: "#0086f7 bold",
|
||||
chroma.NameTag: "#fb660a bold",
|
||||
chroma.NameVariable: "#fb660a",
|
||||
chroma.Comment: "#008800 bg:#0f140f italic",
|
||||
chroma.NameAttribute: "#ff0086 bold",
|
||||
chroma.LiteralString: "#0086d2",
|
||||
chroma.NameFunction: "#ff0086 bold",
|
||||
chroma.GenericHeading: "#ffffff bold",
|
||||
chroma.KeywordType: "#cdcaa9 bold",
|
||||
chroma.GenericSubheading: "#ffffff bold",
|
||||
chroma.NameConstant: "#0086d2",
|
||||
chroma.CommentPreproc: "#ff0007 bold",
|
||||
}))
|
19
styles/fruity.xml
Normal file
19
styles/fruity.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<style name="fruity">
|
||||
<entry type="Background" style="#ffffff bg:#111111"/>
|
||||
<entry type="Keyword" style="bold #fb660a"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="bold #cdcaa9"/>
|
||||
<entry type="NameAttribute" style="bold #ff0086"/>
|
||||
<entry type="NameConstant" style="#0086d2"/>
|
||||
<entry type="NameFunction" style="bold #ff0086"/>
|
||||
<entry type="NameTag" style="bold #fb660a"/>
|
||||
<entry type="NameVariable" style="#fb660a"/>
|
||||
<entry type="LiteralString" style="#0086d2"/>
|
||||
<entry type="LiteralNumber" style="bold #0086f7"/>
|
||||
<entry type="Comment" style="italic #008800 bg:#0f140f"/>
|
||||
<entry type="CommentPreproc" style="bold #ff0007"/>
|
||||
<entry type="GenericHeading" style="bold #ffffff"/>
|
||||
<entry type="GenericOutput" style="#444444 bg:#222222"/>
|
||||
<entry type="GenericSubheading" style="bold #ffffff"/>
|
||||
<entry type="TextWhitespace" style="#888888"/>
|
||||
</style>
|
@ -1,86 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
// colors used from https://github.com/primer/primitives
|
||||
ghRed2 = "#ffa198"
|
||||
ghRed3 = "#ff7b72"
|
||||
ghRed9 = "#490202"
|
||||
ghOrange2 = "#ffa657"
|
||||
ghOrange3 = "#f0883e"
|
||||
ghGreen1 = "#7ee787"
|
||||
ghGreen2 = "#56d364"
|
||||
ghGreen7 = "#0f5323"
|
||||
ghBlue1 = "#a5d6ff"
|
||||
ghBlue2 = "#79c0ff"
|
||||
ghPurple2 = "#d2a8ff"
|
||||
ghGray3 = "#8b949e"
|
||||
ghGray4 = "#6e7681"
|
||||
ghFgSubtle = "#6e7681"
|
||||
ghFgDefault = "#c9d1d9"
|
||||
ghBgDefault = "#0d1117"
|
||||
ghDangerFg = "#f85149"
|
||||
)
|
||||
|
||||
// GitHub Dark style.
|
||||
var GitHubDark = Register(chroma.MustNewStyle("github-dark", chroma.StyleEntries{
|
||||
// Default Token Style
|
||||
chroma.Background: fmt.Sprintf("bg:%s %s", ghBgDefault, ghFgDefault),
|
||||
|
||||
chroma.LineNumbers: ghGray4,
|
||||
// has transparency in VS Code theme as `colors.codemirror.activelineBg`
|
||||
chroma.LineHighlight: ghGray4,
|
||||
|
||||
chroma.Error: ghDangerFg,
|
||||
|
||||
chroma.Keyword: ghRed3,
|
||||
chroma.KeywordConstant: ghBlue2,
|
||||
chroma.KeywordPseudo: ghBlue2,
|
||||
|
||||
chroma.Name: ghFgDefault,
|
||||
chroma.NameClass: "bold " + ghOrange3,
|
||||
chroma.NameConstant: "bold " + ghBlue2,
|
||||
chroma.NameDecorator: "bold " + ghPurple2,
|
||||
chroma.NameEntity: ghOrange2,
|
||||
chroma.NameException: "bold " + ghOrange3,
|
||||
chroma.NameFunction: "bold " + ghPurple2,
|
||||
chroma.NameLabel: "bold " + ghBlue2,
|
||||
chroma.NameNamespace: ghRed3,
|
||||
chroma.NameProperty: ghBlue2,
|
||||
chroma.NameTag: ghGreen1,
|
||||
chroma.NameVariable: ghBlue2,
|
||||
|
||||
chroma.Literal: ghBlue1,
|
||||
chroma.LiteralDate: ghBlue2,
|
||||
chroma.LiteralStringAffix: ghBlue2,
|
||||
chroma.LiteralStringDelimiter: ghBlue2,
|
||||
chroma.LiteralStringEscape: ghBlue2,
|
||||
chroma.LiteralStringHeredoc: ghBlue2,
|
||||
chroma.LiteralStringRegex: ghBlue2,
|
||||
|
||||
chroma.Operator: "bold " + ghRed3,
|
||||
|
||||
chroma.Comment: "italic " + ghGray3,
|
||||
chroma.CommentPreproc: "bold " + ghGray3,
|
||||
chroma.CommentSpecial: "bold italic " + ghGray3,
|
||||
|
||||
chroma.Generic: ghFgDefault,
|
||||
chroma.GenericDeleted: fmt.Sprintf("bg:%s %s", ghRed9, ghRed2),
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericError: ghRed2,
|
||||
chroma.GenericHeading: "bold " + ghBlue2,
|
||||
chroma.GenericInserted: fmt.Sprintf("bg:%s %s", ghGreen7, ghGreen2),
|
||||
chroma.GenericOutput: ghGray3,
|
||||
chroma.GenericPrompt: ghGray3,
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: ghBlue2,
|
||||
chroma.GenericTraceback: ghRed3,
|
||||
chroma.GenericUnderline: "underline",
|
||||
|
||||
chroma.TextWhitespace: ghFgSubtle,
|
||||
}))
|
45
styles/github-dark.xml
Normal file
45
styles/github-dark.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<style name="github-dark">
|
||||
<entry type="Error" style="#f85149"/>
|
||||
<entry type="LineHighlight" style="#6e7681"/>
|
||||
<entry type="LineNumbers" style="#6e7681"/>
|
||||
<entry type="Background" style="#c9d1d9 bg:#0d1117"/>
|
||||
<entry type="Keyword" style="#ff7b72"/>
|
||||
<entry type="KeywordConstant" style="#79c0ff"/>
|
||||
<entry type="KeywordPseudo" style="#79c0ff"/>
|
||||
<entry type="Name" style="#c9d1d9"/>
|
||||
<entry type="NameClass" style="bold #f0883e"/>
|
||||
<entry type="NameConstant" style="bold #79c0ff"/>
|
||||
<entry type="NameDecorator" style="bold #d2a8ff"/>
|
||||
<entry type="NameEntity" style="#ffa657"/>
|
||||
<entry type="NameException" style="bold #f0883e"/>
|
||||
<entry type="NameFunction" style="bold #d2a8ff"/>
|
||||
<entry type="NameLabel" style="bold #79c0ff"/>
|
||||
<entry type="NameNamespace" style="#ff7b72"/>
|
||||
<entry type="NameProperty" style="#79c0ff"/>
|
||||
<entry type="NameTag" style="#7ee787"/>
|
||||
<entry type="NameVariable" style="#79c0ff"/>
|
||||
<entry type="Literal" style="#a5d6ff"/>
|
||||
<entry type="LiteralDate" style="#79c0ff"/>
|
||||
<entry type="LiteralStringAffix" style="#79c0ff"/>
|
||||
<entry type="LiteralStringDelimiter" style="#79c0ff"/>
|
||||
<entry type="LiteralStringEscape" style="#79c0ff"/>
|
||||
<entry type="LiteralStringHeredoc" style="#79c0ff"/>
|
||||
<entry type="LiteralStringRegex" style="#79c0ff"/>
|
||||
<entry type="Operator" style="bold #ff7b72"/>
|
||||
<entry type="Comment" style="italic #8b949e"/>
|
||||
<entry type="CommentSpecial" style="bold italic #8b949e"/>
|
||||
<entry type="CommentPreproc" style="bold #8b949e"/>
|
||||
<entry type="Generic" style="#c9d1d9"/>
|
||||
<entry type="GenericDeleted" style="#ffa198 bg:#490202"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ffa198"/>
|
||||
<entry type="GenericHeading" style="bold #79c0ff"/>
|
||||
<entry type="GenericInserted" style="#56d364 bg:#0f5323"/>
|
||||
<entry type="GenericOutput" style="#8b949e"/>
|
||||
<entry type="GenericPrompt" style="#8b949e"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#79c0ff"/>
|
||||
<entry type="GenericTraceback" style="#ff7b72"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#6e7681"/>
|
||||
</style>
|
@ -1,51 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// GitHub style.
|
||||
var GitHub = Register(chroma.MustNewStyle("github", chroma.StyleEntries{
|
||||
chroma.CommentMultiline: "italic #999988",
|
||||
chroma.CommentPreproc: "bold #999999",
|
||||
chroma.CommentSingle: "italic #999988",
|
||||
chroma.CommentSpecial: "bold italic #999999",
|
||||
chroma.Comment: "italic #999988",
|
||||
chroma.Error: "bg:#e3d2d2 #a61717",
|
||||
chroma.GenericDeleted: "bg:#ffdddd #000000",
|
||||
chroma.GenericEmph: "italic #000000",
|
||||
chroma.GenericError: "#aa0000",
|
||||
chroma.GenericHeading: "#999999",
|
||||
chroma.GenericInserted: "bg:#ddffdd #000000",
|
||||
chroma.GenericOutput: "#888888",
|
||||
chroma.GenericPrompt: "#555555",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#aaaaaa",
|
||||
chroma.GenericTraceback: "#aa0000",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.KeywordType: "bold #445588",
|
||||
chroma.Keyword: "bold #000000",
|
||||
chroma.LiteralNumber: "#009999",
|
||||
chroma.LiteralStringRegex: "#009926",
|
||||
chroma.LiteralStringSymbol: "#990073",
|
||||
chroma.LiteralString: "#d14",
|
||||
chroma.NameAttribute: "#008080",
|
||||
chroma.NameBuiltinPseudo: "#999999",
|
||||
chroma.NameBuiltin: "#0086B3",
|
||||
chroma.NameClass: "bold #445588",
|
||||
chroma.NameConstant: "#008080",
|
||||
chroma.NameDecorator: "bold #3c5d5d",
|
||||
chroma.NameEntity: "#800080",
|
||||
chroma.NameException: "bold #990000",
|
||||
chroma.NameFunction: "bold #990000",
|
||||
chroma.NameLabel: "bold #990000",
|
||||
chroma.NameNamespace: "#555555",
|
||||
chroma.NameTag: "#000080",
|
||||
chroma.NameVariableClass: "#008080",
|
||||
chroma.NameVariableGlobal: "#008080",
|
||||
chroma.NameVariableInstance: "#008080",
|
||||
chroma.NameVariable: "#008080",
|
||||
chroma.Operator: "bold #000000",
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
44
styles/github.xml
Normal file
44
styles/github.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<style name="github">
|
||||
<entry type="Error" style="#a61717 bg:#e3d2d2"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #000000"/>
|
||||
<entry type="KeywordType" style="bold #445588"/>
|
||||
<entry type="NameAttribute" style="#008080"/>
|
||||
<entry type="NameBuiltin" style="#0086b3"/>
|
||||
<entry type="NameBuiltinPseudo" style="#999999"/>
|
||||
<entry type="NameClass" style="bold #445588"/>
|
||||
<entry type="NameConstant" style="#008080"/>
|
||||
<entry type="NameDecorator" style="bold #3c5d5d"/>
|
||||
<entry type="NameEntity" style="#800080"/>
|
||||
<entry type="NameException" style="bold #990000"/>
|
||||
<entry type="NameFunction" style="bold #990000"/>
|
||||
<entry type="NameLabel" style="bold #990000"/>
|
||||
<entry type="NameNamespace" style="#555555"/>
|
||||
<entry type="NameTag" style="#000080"/>
|
||||
<entry type="NameVariable" style="#008080"/>
|
||||
<entry type="NameVariableClass" style="#008080"/>
|
||||
<entry type="NameVariableGlobal" style="#008080"/>
|
||||
<entry type="NameVariableInstance" style="#008080"/>
|
||||
<entry type="LiteralString" style="#dd1144"/>
|
||||
<entry type="LiteralStringRegex" style="#009926"/>
|
||||
<entry type="LiteralStringSymbol" style="#990073"/>
|
||||
<entry type="LiteralNumber" style="#009999"/>
|
||||
<entry type="Operator" style="bold #000000"/>
|
||||
<entry type="Comment" style="italic #999988"/>
|
||||
<entry type="CommentMultiline" style="italic #999988"/>
|
||||
<entry type="CommentSingle" style="italic #999988"/>
|
||||
<entry type="CommentSpecial" style="bold italic #999999"/>
|
||||
<entry type="CommentPreproc" style="bold #999999"/>
|
||||
<entry type="GenericDeleted" style="#000000 bg:#ffdddd"/>
|
||||
<entry type="GenericEmph" style="italic #000000"/>
|
||||
<entry type="GenericError" style="#aa0000"/>
|
||||
<entry type="GenericHeading" style="#999999"/>
|
||||
<entry type="GenericInserted" style="#000000 bg:#ddffdd"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="#555555"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#aaaaaa"/>
|
||||
<entry type="GenericTraceback" style="#aa0000"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,40 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Gruvbox light style.
|
||||
var GruvboxLight = Register(chroma.MustNewStyle("gruvbox-light", chroma.StyleEntries{
|
||||
chroma.CommentPreproc: "noinherit #427B58",
|
||||
chroma.Comment: "#928374 italic",
|
||||
chroma.GenericDeleted: "noinherit #282828 bg:#9D0006",
|
||||
chroma.GenericEmph: "#076678 underline",
|
||||
chroma.GenericError: "bg:#9D0006 bold",
|
||||
chroma.GenericHeading: "#79740E bold",
|
||||
chroma.GenericInserted: "noinherit #282828 bg:#79740E",
|
||||
chroma.GenericOutput: "noinherit #504945",
|
||||
chroma.GenericPrompt: "#3C3836",
|
||||
chroma.GenericStrong: "#3C3836",
|
||||
chroma.GenericSubheading: "#79740E bold",
|
||||
chroma.GenericTraceback: "bg:#3C3836 bold",
|
||||
chroma.Generic: "#3C3836",
|
||||
chroma.KeywordType: "noinherit #B57614",
|
||||
chroma.Keyword: "noinherit #AF3A03",
|
||||
chroma.NameAttribute: "#79740E bold",
|
||||
chroma.NameBuiltin: "#B57614",
|
||||
chroma.NameConstant: "noinherit #d3869b",
|
||||
chroma.NameEntity: "noinherit #B57614",
|
||||
chroma.NameException: "noinherit #fb4934",
|
||||
chroma.NameFunction: "#B57614",
|
||||
chroma.NameLabel: "noinherit #9D0006",
|
||||
chroma.NameTag: "noinherit #9D0006",
|
||||
chroma.NameVariable: "noinherit #3C3836",
|
||||
chroma.Name: "#3C3836",
|
||||
chroma.LiteralNumberFloat: "noinherit #8F3F71",
|
||||
chroma.LiteralNumber: "noinherit #8F3F71",
|
||||
chroma.Operator: "#AF3A03",
|
||||
chroma.LiteralStringSymbol: "#076678",
|
||||
chroma.LiteralString: "noinherit #79740E",
|
||||
chroma.Background: "noinherit #3C3836 bg:#FBF1C7 bg:#FBF1C7",
|
||||
}))
|
33
styles/gruvbox-light.xml
Normal file
33
styles/gruvbox-light.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<style name="gruvbox-light">
|
||||
<entry type="Background" style="noinherit #3c3836 bg:#fbf1c7"/>
|
||||
<entry type="Keyword" style="noinherit #af3a03"/>
|
||||
<entry type="KeywordType" style="noinherit #b57614"/>
|
||||
<entry type="Name" style="#3c3836"/>
|
||||
<entry type="NameAttribute" style="bold #79740e"/>
|
||||
<entry type="NameBuiltin" style="#b57614"/>
|
||||
<entry type="NameConstant" style="noinherit #d3869b"/>
|
||||
<entry type="NameEntity" style="noinherit #b57614"/>
|
||||
<entry type="NameException" style="noinherit #fb4934"/>
|
||||
<entry type="NameFunction" style="#b57614"/>
|
||||
<entry type="NameLabel" style="noinherit #9d0006"/>
|
||||
<entry type="NameTag" style="noinherit #9d0006"/>
|
||||
<entry type="NameVariable" style="noinherit #3c3836"/>
|
||||
<entry type="LiteralString" style="noinherit #79740e"/>
|
||||
<entry type="LiteralStringSymbol" style="#076678"/>
|
||||
<entry type="LiteralNumber" style="noinherit #8f3f71"/>
|
||||
<entry type="LiteralNumberFloat" style="noinherit #8f3f71"/>
|
||||
<entry type="Operator" style="#af3a03"/>
|
||||
<entry type="Comment" style="italic #928374"/>
|
||||
<entry type="CommentPreproc" style="noinherit #427b58"/>
|
||||
<entry type="Generic" style="#3c3836"/>
|
||||
<entry type="GenericDeleted" style="noinherit #282828 bg:#9d0006"/>
|
||||
<entry type="GenericEmph" style="underline #076678"/>
|
||||
<entry type="GenericError" style="bold bg:#9d0006"/>
|
||||
<entry type="GenericHeading" style="bold #79740e"/>
|
||||
<entry type="GenericInserted" style="noinherit #282828 bg:#79740e"/>
|
||||
<entry type="GenericOutput" style="noinherit #504945"/>
|
||||
<entry type="GenericPrompt" style="#3c3836"/>
|
||||
<entry type="GenericStrong" style="#3c3836"/>
|
||||
<entry type="GenericSubheading" style="bold #79740e"/>
|
||||
<entry type="GenericTraceback" style="bold bg:#3c3836"/>
|
||||
</style>
|
@ -1,40 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Gruvbox style.
|
||||
var Gruvbox = Register(chroma.MustNewStyle("gruvbox", chroma.StyleEntries{
|
||||
chroma.CommentPreproc: "noinherit #8ec07c",
|
||||
chroma.Comment: "#928374 italic",
|
||||
chroma.GenericDeleted: "noinherit #282828 bg:#fb4934",
|
||||
chroma.GenericEmph: "#83a598 underline",
|
||||
chroma.GenericError: "bg:#fb4934 bold",
|
||||
chroma.GenericHeading: "#b8bb26 bold",
|
||||
chroma.GenericInserted: "noinherit #282828 bg:#b8bb26",
|
||||
chroma.GenericOutput: "noinherit #504945",
|
||||
chroma.GenericPrompt: "#ebdbb2",
|
||||
chroma.GenericStrong: "#ebdbb2",
|
||||
chroma.GenericSubheading: "#b8bb26 bold",
|
||||
chroma.GenericTraceback: "bg:#fb4934 bold",
|
||||
chroma.Generic: "#ebdbb2",
|
||||
chroma.KeywordType: "noinherit #fabd2f",
|
||||
chroma.Keyword: "noinherit #fe8019",
|
||||
chroma.NameAttribute: "#b8bb26 bold",
|
||||
chroma.NameBuiltin: "#fabd2f",
|
||||
chroma.NameConstant: "noinherit #d3869b",
|
||||
chroma.NameEntity: "noinherit #fabd2f",
|
||||
chroma.NameException: "noinherit #fb4934",
|
||||
chroma.NameFunction: "#fabd2f",
|
||||
chroma.NameLabel: "noinherit #fb4934",
|
||||
chroma.NameTag: "noinherit #fb4934",
|
||||
chroma.NameVariable: "noinherit #ebdbb2",
|
||||
chroma.Name: "#ebdbb2",
|
||||
chroma.LiteralNumberFloat: "noinherit #d3869b",
|
||||
chroma.LiteralNumber: "noinherit #d3869b",
|
||||
chroma.Operator: "#fe8019",
|
||||
chroma.LiteralStringSymbol: "#83a598",
|
||||
chroma.LiteralString: "noinherit #b8bb26",
|
||||
chroma.Background: "noinherit #ebdbb2 bg:#282828 bg:#282828",
|
||||
}))
|
33
styles/gruvbox.xml
Normal file
33
styles/gruvbox.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<style name="gruvbox">
|
||||
<entry type="Background" style="noinherit #ebdbb2 bg:#282828"/>
|
||||
<entry type="Keyword" style="noinherit #fe8019"/>
|
||||
<entry type="KeywordType" style="noinherit #fabd2f"/>
|
||||
<entry type="Name" style="#ebdbb2"/>
|
||||
<entry type="NameAttribute" style="bold #b8bb26"/>
|
||||
<entry type="NameBuiltin" style="#fabd2f"/>
|
||||
<entry type="NameConstant" style="noinherit #d3869b"/>
|
||||
<entry type="NameEntity" style="noinherit #fabd2f"/>
|
||||
<entry type="NameException" style="noinherit #fb4934"/>
|
||||
<entry type="NameFunction" style="#fabd2f"/>
|
||||
<entry type="NameLabel" style="noinherit #fb4934"/>
|
||||
<entry type="NameTag" style="noinherit #fb4934"/>
|
||||
<entry type="NameVariable" style="noinherit #ebdbb2"/>
|
||||
<entry type="LiteralString" style="noinherit #b8bb26"/>
|
||||
<entry type="LiteralStringSymbol" style="#83a598"/>
|
||||
<entry type="LiteralNumber" style="noinherit #d3869b"/>
|
||||
<entry type="LiteralNumberFloat" style="noinherit #d3869b"/>
|
||||
<entry type="Operator" style="#fe8019"/>
|
||||
<entry type="Comment" style="italic #928374"/>
|
||||
<entry type="CommentPreproc" style="noinherit #8ec07c"/>
|
||||
<entry type="Generic" style="#ebdbb2"/>
|
||||
<entry type="GenericDeleted" style="noinherit #282828 bg:#fb4934"/>
|
||||
<entry type="GenericEmph" style="underline #83a598"/>
|
||||
<entry type="GenericError" style="bold bg:#fb4934"/>
|
||||
<entry type="GenericHeading" style="bold #b8bb26"/>
|
||||
<entry type="GenericInserted" style="noinherit #282828 bg:#b8bb26"/>
|
||||
<entry type="GenericOutput" style="noinherit #504945"/>
|
||||
<entry type="GenericPrompt" style="#ebdbb2"/>
|
||||
<entry type="GenericStrong" style="#ebdbb2"/>
|
||||
<entry type="GenericSubheading" style="bold #b8bb26"/>
|
||||
<entry type="GenericTraceback" style="bold bg:#fb4934"/>
|
||||
</style>
|
@ -1,17 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Theme based on HackerRank Dark Editor theme
|
||||
var HrDark = Register(chroma.MustNewStyle("hrdark", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #828b96",
|
||||
chroma.Keyword: "#ff636f",
|
||||
chroma.OperatorWord: "#ff636f",
|
||||
chroma.Name: "#58a1dd",
|
||||
chroma.Literal: "#a6be9d",
|
||||
chroma.Operator: "#ff636f",
|
||||
chroma.Background: "#1d2432",
|
||||
chroma.Other: "#fff",
|
||||
}))
|
@ -1,19 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Theme based on HackerRank High Contrast Editor Theme
|
||||
var HrHighContrast = Register(chroma.MustNewStyle("hr_high_contrast", chroma.StyleEntries{
|
||||
chroma.Comment: "#5a8349",
|
||||
chroma.Keyword: "#467faf",
|
||||
chroma.OperatorWord: "#467faf",
|
||||
chroma.Name: "#ffffff",
|
||||
chroma.LiteralString: "#a87662",
|
||||
chroma.LiteralNumber: "#fff",
|
||||
chroma.LiteralStringBoolean: "#467faf",
|
||||
chroma.Operator: "#e4e400",
|
||||
chroma.Background: "#000",
|
||||
chroma.Other: "#d5d500",
|
||||
}))
|
12
styles/hr_high_contrast.xml
Normal file
12
styles/hr_high_contrast.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<style name="hr_high_contrast">
|
||||
<entry type="Other" style="#d5d500"/>
|
||||
<entry type="Background" style="#000000"/>
|
||||
<entry type="Keyword" style="#467faf"/>
|
||||
<entry type="Name" style="#ffffff"/>
|
||||
<entry type="LiteralString" style="#a87662"/>
|
||||
<entry type="LiteralStringBoolean" style="#467faf"/>
|
||||
<entry type="LiteralNumber" style="#ffffff"/>
|
||||
<entry type="Operator" style="#e4e400"/>
|
||||
<entry type="OperatorWord" style="#467faf"/>
|
||||
<entry type="Comment" style="#5a8349"/>
|
||||
</style>
|
10
styles/hrdark.xml
Normal file
10
styles/hrdark.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<style name="hrdark">
|
||||
<entry type="Other" style="#ffffff"/>
|
||||
<entry type="Background" style="#1d2432"/>
|
||||
<entry type="Keyword" style="#ff636f"/>
|
||||
<entry type="Name" style="#58a1dd"/>
|
||||
<entry type="Literal" style="#a6be9d"/>
|
||||
<entry type="Operator" style="#ff636f"/>
|
||||
<entry type="OperatorWord" style="#ff636f"/>
|
||||
<entry type="Comment" style="italic #828b96"/>
|
||||
</style>
|
@ -1,16 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Igor style.
|
||||
var Igor = Register(chroma.MustNewStyle("igor", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #FF0000",
|
||||
chroma.Keyword: "#0000FF",
|
||||
chroma.NameFunction: "#C34E00",
|
||||
chroma.NameDecorator: "#CC00A3",
|
||||
chroma.NameClass: "#007575",
|
||||
chroma.LiteralString: "#009C00",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
9
styles/igor.xml
Normal file
9
styles/igor.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<style name="igor">
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#0000ff"/>
|
||||
<entry type="NameClass" style="#007575"/>
|
||||
<entry type="NameDecorator" style="#cc00a3"/>
|
||||
<entry type="NameFunction" style="#c34e00"/>
|
||||
<entry type="LiteralString" style="#009c00"/>
|
||||
<entry type="Comment" style="italic #ff0000"/>
|
||||
</style>
|
@ -1,60 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Lovelace style.
|
||||
var Lovelace = Register(chroma.MustNewStyle("lovelace", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#a89028",
|
||||
chroma.Comment: "italic #888888",
|
||||
chroma.CommentHashbang: "#287088",
|
||||
chroma.CommentMultiline: "#888888",
|
||||
chroma.CommentPreproc: "noitalic #289870",
|
||||
chroma.Keyword: "#2838b0",
|
||||
chroma.KeywordConstant: "italic #444444",
|
||||
chroma.KeywordDeclaration: "italic",
|
||||
chroma.KeywordType: "italic",
|
||||
chroma.Operator: "#666666",
|
||||
chroma.OperatorWord: "#a848a8",
|
||||
chroma.Punctuation: "#888888",
|
||||
chroma.NameAttribute: "#388038",
|
||||
chroma.NameBuiltin: "#388038",
|
||||
chroma.NameBuiltinPseudo: "italic",
|
||||
chroma.NameClass: "#287088",
|
||||
chroma.NameConstant: "#b85820",
|
||||
chroma.NameDecorator: "#287088",
|
||||
chroma.NameEntity: "#709030",
|
||||
chroma.NameException: "#908828",
|
||||
chroma.NameFunction: "#785840",
|
||||
chroma.NameFunctionMagic: "#b85820",
|
||||
chroma.NameLabel: "#289870",
|
||||
chroma.NameNamespace: "#289870",
|
||||
chroma.NameTag: "#2838b0",
|
||||
chroma.NameVariable: "#b04040",
|
||||
chroma.NameVariableGlobal: "#908828",
|
||||
chroma.NameVariableMagic: "#b85820",
|
||||
chroma.LiteralString: "#b83838",
|
||||
chroma.LiteralStringAffix: "#444444",
|
||||
chroma.LiteralStringChar: "#a848a8",
|
||||
chroma.LiteralStringDelimiter: "#b85820",
|
||||
chroma.LiteralStringDoc: "italic #b85820",
|
||||
chroma.LiteralStringEscape: "#709030",
|
||||
chroma.LiteralStringInterpol: "underline",
|
||||
chroma.LiteralStringOther: "#a848a8",
|
||||
chroma.LiteralStringRegex: "#a848a8",
|
||||
chroma.LiteralNumber: "#444444",
|
||||
chroma.GenericDeleted: "#c02828",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericError: "#c02828",
|
||||
chroma.GenericHeading: "#666666",
|
||||
chroma.GenericSubheading: "#444444",
|
||||
chroma.GenericInserted: "#388038",
|
||||
chroma.GenericOutput: "#666666",
|
||||
chroma.GenericPrompt: "#444444",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericTraceback: "#2838b0",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#a848a8",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
53
styles/lovelace.xml
Normal file
53
styles/lovelace.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<style name="lovelace">
|
||||
<entry type="Error" style="bg:#a848a8"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#2838b0"/>
|
||||
<entry type="KeywordConstant" style="italic #444444"/>
|
||||
<entry type="KeywordDeclaration" style="italic"/>
|
||||
<entry type="KeywordType" style="italic"/>
|
||||
<entry type="NameAttribute" style="#388038"/>
|
||||
<entry type="NameBuiltin" style="#388038"/>
|
||||
<entry type="NameBuiltinPseudo" style="italic"/>
|
||||
<entry type="NameClass" style="#287088"/>
|
||||
<entry type="NameConstant" style="#b85820"/>
|
||||
<entry type="NameDecorator" style="#287088"/>
|
||||
<entry type="NameEntity" style="#709030"/>
|
||||
<entry type="NameException" style="#908828"/>
|
||||
<entry type="NameFunction" style="#785840"/>
|
||||
<entry type="NameFunctionMagic" style="#b85820"/>
|
||||
<entry type="NameLabel" style="#289870"/>
|
||||
<entry type="NameNamespace" style="#289870"/>
|
||||
<entry type="NameTag" style="#2838b0"/>
|
||||
<entry type="NameVariable" style="#b04040"/>
|
||||
<entry type="NameVariableGlobal" style="#908828"/>
|
||||
<entry type="NameVariableMagic" style="#b85820"/>
|
||||
<entry type="LiteralString" style="#b83838"/>
|
||||
<entry type="LiteralStringAffix" style="#444444"/>
|
||||
<entry type="LiteralStringChar" style="#a848a8"/>
|
||||
<entry type="LiteralStringDelimiter" style="#b85820"/>
|
||||
<entry type="LiteralStringDoc" style="italic #b85820"/>
|
||||
<entry type="LiteralStringEscape" style="#709030"/>
|
||||
<entry type="LiteralStringInterpol" style="underline"/>
|
||||
<entry type="LiteralStringOther" style="#a848a8"/>
|
||||
<entry type="LiteralStringRegex" style="#a848a8"/>
|
||||
<entry type="LiteralNumber" style="#444444"/>
|
||||
<entry type="Operator" style="#666666"/>
|
||||
<entry type="OperatorWord" style="#a848a8"/>
|
||||
<entry type="Punctuation" style="#888888"/>
|
||||
<entry type="Comment" style="italic #888888"/>
|
||||
<entry type="CommentHashbang" style="#287088"/>
|
||||
<entry type="CommentMultiline" style="#888888"/>
|
||||
<entry type="CommentPreproc" style="noitalic #289870"/>
|
||||
<entry type="GenericDeleted" style="#c02828"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#c02828"/>
|
||||
<entry type="GenericHeading" style="#666666"/>
|
||||
<entry type="GenericInserted" style="#388038"/>
|
||||
<entry type="GenericOutput" style="#666666"/>
|
||||
<entry type="GenericPrompt" style="#444444"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#444444"/>
|
||||
<entry type="GenericTraceback" style="#2838b0"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#a89028"/>
|
||||
</style>
|
@ -1,51 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Manni style.
|
||||
var Manni = Register(chroma.MustNewStyle("manni", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #0099FF",
|
||||
chroma.CommentPreproc: "noitalic #009999",
|
||||
chroma.CommentSpecial: "bold",
|
||||
chroma.Keyword: "bold #006699",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "#007788",
|
||||
chroma.Operator: "#555555",
|
||||
chroma.OperatorWord: "bold #000000",
|
||||
chroma.NameBuiltin: "#336666",
|
||||
chroma.NameFunction: "#CC00FF",
|
||||
chroma.NameClass: "bold #00AA88",
|
||||
chroma.NameNamespace: "bold #00CCFF",
|
||||
chroma.NameException: "bold #CC0000",
|
||||
chroma.NameVariable: "#003333",
|
||||
chroma.NameConstant: "#336600",
|
||||
chroma.NameLabel: "#9999FF",
|
||||
chroma.NameEntity: "bold #999999",
|
||||
chroma.NameAttribute: "#330099",
|
||||
chroma.NameTag: "bold #330099",
|
||||
chroma.NameDecorator: "#9999FF",
|
||||
chroma.LiteralString: "#CC3300",
|
||||
chroma.LiteralStringDoc: "italic",
|
||||
chroma.LiteralStringInterpol: "#AA0000",
|
||||
chroma.LiteralStringEscape: "bold #CC3300",
|
||||
chroma.LiteralStringRegex: "#33AAAA",
|
||||
chroma.LiteralStringSymbol: "#FFCC33",
|
||||
chroma.LiteralStringOther: "#CC3300",
|
||||
chroma.LiteralNumber: "#FF6600",
|
||||
chroma.GenericHeading: "bold #003300",
|
||||
chroma.GenericSubheading: "bold #003300",
|
||||
chroma.GenericDeleted: "border:#CC0000 bg:#FFCCCC",
|
||||
chroma.GenericInserted: "border:#00CC00 bg:#CCFFCC",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #000099",
|
||||
chroma.GenericOutput: "#AAAAAA",
|
||||
chroma.GenericTraceback: "#99CC66",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#FFAAAA #AA0000",
|
||||
chroma.Background: " bg:#f0f3f3",
|
||||
}))
|
44
styles/manni.xml
Normal file
44
styles/manni.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<style name="manni">
|
||||
<entry type="Error" style="#aa0000 bg:#ffaaaa"/>
|
||||
<entry type="Background" style="bg:#f0f3f3"/>
|
||||
<entry type="Keyword" style="bold #006699"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="#007788"/>
|
||||
<entry type="NameAttribute" style="#330099"/>
|
||||
<entry type="NameBuiltin" style="#336666"/>
|
||||
<entry type="NameClass" style="bold #00aa88"/>
|
||||
<entry type="NameConstant" style="#336600"/>
|
||||
<entry type="NameDecorator" style="#9999ff"/>
|
||||
<entry type="NameEntity" style="bold #999999"/>
|
||||
<entry type="NameException" style="bold #cc0000"/>
|
||||
<entry type="NameFunction" style="#cc00ff"/>
|
||||
<entry type="NameLabel" style="#9999ff"/>
|
||||
<entry type="NameNamespace" style="bold #00ccff"/>
|
||||
<entry type="NameTag" style="bold #330099"/>
|
||||
<entry type="NameVariable" style="#003333"/>
|
||||
<entry type="LiteralString" style="#cc3300"/>
|
||||
<entry type="LiteralStringDoc" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold #cc3300"/>
|
||||
<entry type="LiteralStringInterpol" style="#aa0000"/>
|
||||
<entry type="LiteralStringOther" style="#cc3300"/>
|
||||
<entry type="LiteralStringRegex" style="#33aaaa"/>
|
||||
<entry type="LiteralStringSymbol" style="#ffcc33"/>
|
||||
<entry type="LiteralNumber" style="#ff6600"/>
|
||||
<entry type="Operator" style="#555555"/>
|
||||
<entry type="OperatorWord" style="bold #000000"/>
|
||||
<entry type="Comment" style="italic #0099ff"/>
|
||||
<entry type="CommentSpecial" style="bold"/>
|
||||
<entry type="CommentPreproc" style="noitalic #009999"/>
|
||||
<entry type="GenericDeleted" style="bg:#ffcccc border:#cc0000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #003300"/>
|
||||
<entry type="GenericInserted" style="bg:#ccffcc border:#00cc00"/>
|
||||
<entry type="GenericOutput" style="#aaaaaa"/>
|
||||
<entry type="GenericPrompt" style="bold #000099"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #003300"/>
|
||||
<entry type="GenericTraceback" style="#99cc66"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,20 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Modus Operandi (light) style.
|
||||
var ModusOperandi = Register(chroma.MustNewStyle("modus-operandi", chroma.StyleEntries{
|
||||
chroma.Keyword: "#5317ac",
|
||||
chroma.KeywordConstant: "#0000c0",
|
||||
chroma.KeywordType: "#005a5f",
|
||||
chroma.Comment: "#505050",
|
||||
chroma.NameVariable: "#00538b",
|
||||
chroma.Operator: "#00538b",
|
||||
chroma.NameFunction: "#721045",
|
||||
chroma.NameBuiltin: "#8f0075",
|
||||
chroma.Literal: "#0000c0",
|
||||
chroma.String: "#2544bb",
|
||||
chroma.Background: "#000000 bg:#ffffff",
|
||||
}))
|
13
styles/modus-operandi.xml
Normal file
13
styles/modus-operandi.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<style name="modus-operandi">
|
||||
<entry type="Background" style="#000000 bg:#ffffff"/>
|
||||
<entry type="Keyword" style="#5317ac"/>
|
||||
<entry type="KeywordConstant" style="#0000c0"/>
|
||||
<entry type="KeywordType" style="#005a5f"/>
|
||||
<entry type="NameBuiltin" style="#8f0075"/>
|
||||
<entry type="NameFunction" style="#721045"/>
|
||||
<entry type="NameVariable" style="#00538b"/>
|
||||
<entry type="Literal" style="#0000c0"/>
|
||||
<entry type="LiteralString" style="#2544bb"/>
|
||||
<entry type="Operator" style="#00538b"/>
|
||||
<entry type="Comment" style="#505050"/>
|
||||
</style>
|
@ -1,20 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Modus Vivendi (dark) style.
|
||||
var ModusVivendi = Register(chroma.MustNewStyle("modus-vivendi", chroma.StyleEntries{
|
||||
chroma.Keyword: "#b6a0ff",
|
||||
chroma.KeywordConstant: "#00bcff",
|
||||
chroma.KeywordType: "#6ae4b9",
|
||||
chroma.Comment: "#a8a8a8",
|
||||
chroma.NameVariable: "#00d3d0",
|
||||
chroma.Operator: "#00d3d0",
|
||||
chroma.NameFunction: "#feacd0",
|
||||
chroma.NameBuiltin: "#f78fe7",
|
||||
chroma.Literal: "#00bcff",
|
||||
chroma.String: "#79a8ff",
|
||||
chroma.Background: "#ffffff bg:#000000",
|
||||
}))
|
13
styles/modus-vivendi.xml
Normal file
13
styles/modus-vivendi.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<style name="modus-vivendi">
|
||||
<entry type="Background" style="#ffffff bg:#000000"/>
|
||||
<entry type="Keyword" style="#b6a0ff"/>
|
||||
<entry type="KeywordConstant" style="#00bcff"/>
|
||||
<entry type="KeywordType" style="#6ae4b9"/>
|
||||
<entry type="NameBuiltin" style="#f78fe7"/>
|
||||
<entry type="NameFunction" style="#feacd0"/>
|
||||
<entry type="NameVariable" style="#00d3d0"/>
|
||||
<entry type="Literal" style="#00bcff"/>
|
||||
<entry type="LiteralString" style="#79a8ff"/>
|
||||
<entry type="Operator" style="#00d3d0"/>
|
||||
<entry type="Comment" style="#a8a8a8"/>
|
||||
</style>
|
@ -1,36 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Monokai style.
|
||||
var Monokai = Register(chroma.MustNewStyle("monokai", chroma.StyleEntries{
|
||||
chroma.Text: "#f8f8f2",
|
||||
chroma.Error: "#960050 bg:#1e0010",
|
||||
chroma.Comment: "#75715e",
|
||||
chroma.Keyword: "#66d9ef",
|
||||
chroma.KeywordNamespace: "#f92672",
|
||||
chroma.Operator: "#f92672",
|
||||
chroma.Punctuation: "#f8f8f2",
|
||||
chroma.Name: "#f8f8f2",
|
||||
chroma.NameAttribute: "#a6e22e",
|
||||
chroma.NameClass: "#a6e22e",
|
||||
chroma.NameConstant: "#66d9ef",
|
||||
chroma.NameDecorator: "#a6e22e",
|
||||
chroma.NameException: "#a6e22e",
|
||||
chroma.NameFunction: "#a6e22e",
|
||||
chroma.NameOther: "#a6e22e",
|
||||
chroma.NameTag: "#f92672",
|
||||
chroma.LiteralNumber: "#ae81ff",
|
||||
chroma.Literal: "#ae81ff",
|
||||
chroma.LiteralDate: "#e6db74",
|
||||
chroma.LiteralString: "#e6db74",
|
||||
chroma.LiteralStringEscape: "#ae81ff",
|
||||
chroma.GenericDeleted: "#f92672",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericInserted: "#a6e22e",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "#75715e",
|
||||
chroma.Background: "bg:#272822",
|
||||
}))
|
29
styles/monokai.xml
Normal file
29
styles/monokai.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<style name="monokai">
|
||||
<entry type="Error" style="#960050 bg:#1e0010"/>
|
||||
<entry type="Background" style="bg:#272822"/>
|
||||
<entry type="Keyword" style="#66d9ef"/>
|
||||
<entry type="KeywordNamespace" style="#f92672"/>
|
||||
<entry type="Name" style="#f8f8f2"/>
|
||||
<entry type="NameAttribute" style="#a6e22e"/>
|
||||
<entry type="NameClass" style="#a6e22e"/>
|
||||
<entry type="NameConstant" style="#66d9ef"/>
|
||||
<entry type="NameDecorator" style="#a6e22e"/>
|
||||
<entry type="NameException" style="#a6e22e"/>
|
||||
<entry type="NameFunction" style="#a6e22e"/>
|
||||
<entry type="NameOther" style="#a6e22e"/>
|
||||
<entry type="NameTag" style="#f92672"/>
|
||||
<entry type="Literal" style="#ae81ff"/>
|
||||
<entry type="LiteralDate" style="#e6db74"/>
|
||||
<entry type="LiteralString" style="#e6db74"/>
|
||||
<entry type="LiteralStringEscape" style="#ae81ff"/>
|
||||
<entry type="LiteralNumber" style="#ae81ff"/>
|
||||
<entry type="Operator" style="#f92672"/>
|
||||
<entry type="Punctuation" style="#f8f8f2"/>
|
||||
<entry type="Comment" style="#75715e"/>
|
||||
<entry type="GenericDeleted" style="#f92672"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericInserted" style="#a6e22e"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#75715e"/>
|
||||
<entry type="Text" style="#f8f8f2"/>
|
||||
</style>
|
@ -1,33 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// MonokaiLight style.
|
||||
var MonokaiLight = Register(chroma.MustNewStyle("monokailight", chroma.StyleEntries{
|
||||
chroma.Text: "#272822",
|
||||
chroma.Error: "#960050 bg:#1e0010",
|
||||
chroma.Comment: "#75715e",
|
||||
chroma.Keyword: "#00a8c8",
|
||||
chroma.KeywordNamespace: "#f92672",
|
||||
chroma.Operator: "#f92672",
|
||||
chroma.Punctuation: "#111111",
|
||||
chroma.Name: "#111111",
|
||||
chroma.NameAttribute: "#75af00",
|
||||
chroma.NameClass: "#75af00",
|
||||
chroma.NameConstant: "#00a8c8",
|
||||
chroma.NameDecorator: "#75af00",
|
||||
chroma.NameException: "#75af00",
|
||||
chroma.NameFunction: "#75af00",
|
||||
chroma.NameOther: "#75af00",
|
||||
chroma.NameTag: "#f92672",
|
||||
chroma.LiteralNumber: "#ae81ff",
|
||||
chroma.Literal: "#ae81ff",
|
||||
chroma.LiteralDate: "#d88200",
|
||||
chroma.LiteralString: "#d88200",
|
||||
chroma.LiteralStringEscape: "#8045FF",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.Background: " bg:#fafafa",
|
||||
}))
|
26
styles/monokailight.xml
Normal file
26
styles/monokailight.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<style name="monokailight">
|
||||
<entry type="Error" style="#960050 bg:#1e0010"/>
|
||||
<entry type="Background" style="bg:#fafafa"/>
|
||||
<entry type="Keyword" style="#00a8c8"/>
|
||||
<entry type="KeywordNamespace" style="#f92672"/>
|
||||
<entry type="Name" style="#111111"/>
|
||||
<entry type="NameAttribute" style="#75af00"/>
|
||||
<entry type="NameClass" style="#75af00"/>
|
||||
<entry type="NameConstant" style="#00a8c8"/>
|
||||
<entry type="NameDecorator" style="#75af00"/>
|
||||
<entry type="NameException" style="#75af00"/>
|
||||
<entry type="NameFunction" style="#75af00"/>
|
||||
<entry type="NameOther" style="#75af00"/>
|
||||
<entry type="NameTag" style="#f92672"/>
|
||||
<entry type="Literal" style="#ae81ff"/>
|
||||
<entry type="LiteralDate" style="#d88200"/>
|
||||
<entry type="LiteralString" style="#d88200"/>
|
||||
<entry type="LiteralStringEscape" style="#8045ff"/>
|
||||
<entry type="LiteralNumber" style="#ae81ff"/>
|
||||
<entry type="Operator" style="#f92672"/>
|
||||
<entry type="Punctuation" style="#111111"/>
|
||||
<entry type="Comment" style="#75715e"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="Text" style="#272822"/>
|
||||
</style>
|
@ -1,59 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Murphy style.
|
||||
var Murphy = Register(chroma.MustNewStyle("murphy", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "#666 italic",
|
||||
chroma.CommentPreproc: "#579 noitalic",
|
||||
chroma.CommentSpecial: "#c00 bold",
|
||||
chroma.Keyword: "bold #289",
|
||||
chroma.KeywordPseudo: "#08f",
|
||||
chroma.KeywordType: "#66f",
|
||||
chroma.Operator: "#333",
|
||||
chroma.OperatorWord: "bold #000",
|
||||
chroma.NameBuiltin: "#072",
|
||||
chroma.NameFunction: "bold #5ed",
|
||||
chroma.NameClass: "bold #e9e",
|
||||
chroma.NameNamespace: "bold #0e84b5",
|
||||
chroma.NameException: "bold #F00",
|
||||
chroma.NameVariable: "#036",
|
||||
chroma.NameVariableInstance: "#aaf",
|
||||
chroma.NameVariableClass: "#ccf",
|
||||
chroma.NameVariableGlobal: "#f84",
|
||||
chroma.NameConstant: "bold #5ed",
|
||||
chroma.NameLabel: "bold #970",
|
||||
chroma.NameEntity: "#800",
|
||||
chroma.NameAttribute: "#007",
|
||||
chroma.NameTag: "#070",
|
||||
chroma.NameDecorator: "bold #555",
|
||||
chroma.LiteralString: "bg:#e0e0ff",
|
||||
chroma.LiteralStringChar: "#88F bg:",
|
||||
chroma.LiteralStringDoc: "#D42 bg:",
|
||||
chroma.LiteralStringInterpol: "bg:#eee",
|
||||
chroma.LiteralStringEscape: "bold #666",
|
||||
chroma.LiteralStringRegex: "bg:#e0e0ff #000",
|
||||
chroma.LiteralStringSymbol: "#fc8 bg:",
|
||||
chroma.LiteralStringOther: "#f88",
|
||||
chroma.LiteralNumber: "bold #60E",
|
||||
chroma.LiteralNumberInteger: "bold #66f",
|
||||
chroma.LiteralNumberFloat: "bold #60E",
|
||||
chroma.LiteralNumberHex: "bold #058",
|
||||
chroma.LiteralNumberOct: "bold #40E",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#A00000",
|
||||
chroma.GenericInserted: "#00A000",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #c65d09",
|
||||
chroma.GenericOutput: "#888",
|
||||
chroma.GenericTraceback: "#04D",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "#F00 bg:#FAA",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
52
styles/murphy.xml
Normal file
52
styles/murphy.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<style name="murphy">
|
||||
<entry type="Error" style="#ff0000 bg:#ffaaaa"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #228899"/>
|
||||
<entry type="KeywordPseudo" style="#0088ff"/>
|
||||
<entry type="KeywordType" style="#6666ff"/>
|
||||
<entry type="NameAttribute" style="#000077"/>
|
||||
<entry type="NameBuiltin" style="#007722"/>
|
||||
<entry type="NameClass" style="bold #ee99ee"/>
|
||||
<entry type="NameConstant" style="bold #55eedd"/>
|
||||
<entry type="NameDecorator" style="bold #555555"/>
|
||||
<entry type="NameEntity" style="#880000"/>
|
||||
<entry type="NameException" style="bold #ff0000"/>
|
||||
<entry type="NameFunction" style="bold #55eedd"/>
|
||||
<entry type="NameLabel" style="bold #997700"/>
|
||||
<entry type="NameNamespace" style="bold #0e84b5"/>
|
||||
<entry type="NameTag" style="#007700"/>
|
||||
<entry type="NameVariable" style="#003366"/>
|
||||
<entry type="NameVariableClass" style="#ccccff"/>
|
||||
<entry type="NameVariableGlobal" style="#ff8844"/>
|
||||
<entry type="NameVariableInstance" style="#aaaaff"/>
|
||||
<entry type="LiteralString" style="bg:#e0e0ff"/>
|
||||
<entry type="LiteralStringChar" style="#8888ff"/>
|
||||
<entry type="LiteralStringDoc" style="#dd4422"/>
|
||||
<entry type="LiteralStringEscape" style="bold #666666"/>
|
||||
<entry type="LiteralStringInterpol" style="bg:#eeeeee"/>
|
||||
<entry type="LiteralStringOther" style="#ff8888"/>
|
||||
<entry type="LiteralStringRegex" style="#000000 bg:#e0e0ff"/>
|
||||
<entry type="LiteralStringSymbol" style="#ffcc88"/>
|
||||
<entry type="LiteralNumber" style="bold #6600ee"/>
|
||||
<entry type="LiteralNumberFloat" style="bold #6600ee"/>
|
||||
<entry type="LiteralNumberHex" style="bold #005588"/>
|
||||
<entry type="LiteralNumberInteger" style="bold #6666ff"/>
|
||||
<entry type="LiteralNumberOct" style="bold #4400ee"/>
|
||||
<entry type="Operator" style="#333333"/>
|
||||
<entry type="OperatorWord" style="bold #000000"/>
|
||||
<entry type="Comment" style="italic #666666"/>
|
||||
<entry type="CommentSpecial" style="bold #cc0000"/>
|
||||
<entry type="CommentPreproc" style="noitalic #557799"/>
|
||||
<entry type="GenericDeleted" style="#a00000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00a000"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="bold #c65d09"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#0044dd"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,42 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Native style.
|
||||
var Native = Register(chroma.MustNewStyle("native", chroma.StyleEntries{
|
||||
chroma.Background: "#d0d0d0 bg:#202020",
|
||||
chroma.TextWhitespace: "#666666",
|
||||
chroma.Comment: "italic #999999",
|
||||
chroma.CommentPreproc: "noitalic bold #cd2828",
|
||||
chroma.CommentSpecial: "noitalic bold #e50808 bg:#520000",
|
||||
chroma.Keyword: "bold #6ab825",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.OperatorWord: "bold #6ab825",
|
||||
chroma.LiteralString: "#ed9d13",
|
||||
chroma.LiteralStringOther: "#ffa500",
|
||||
chroma.LiteralNumber: "#3677a9",
|
||||
chroma.NameBuiltin: "#24909d",
|
||||
chroma.NameVariable: "#40ffff",
|
||||
chroma.NameConstant: "#40ffff",
|
||||
chroma.NameClass: "underline #447fcf",
|
||||
chroma.NameFunction: "#447fcf",
|
||||
chroma.NameNamespace: "underline #447fcf",
|
||||
chroma.NameException: "#bbbbbb",
|
||||
chroma.NameTag: "bold #6ab825",
|
||||
chroma.NameAttribute: "#bbbbbb",
|
||||
chroma.NameDecorator: "#ffa500",
|
||||
chroma.GenericHeading: "bold #ffffff",
|
||||
chroma.GenericSubheading: "underline #ffffff",
|
||||
chroma.GenericDeleted: "#d22323",
|
||||
chroma.GenericInserted: "#589819",
|
||||
chroma.GenericError: "#d22323",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "#aaaaaa",
|
||||
chroma.GenericOutput: "#cccccc",
|
||||
chroma.GenericTraceback: "#d22323",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#e3d2d2 #a61717",
|
||||
}))
|
35
styles/native.xml
Normal file
35
styles/native.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<style name="native">
|
||||
<entry type="Error" style="#a61717 bg:#e3d2d2"/>
|
||||
<entry type="Background" style="#d0d0d0 bg:#202020"/>
|
||||
<entry type="Keyword" style="bold #6ab825"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="NameAttribute" style="#bbbbbb"/>
|
||||
<entry type="NameBuiltin" style="#24909d"/>
|
||||
<entry type="NameClass" style="underline #447fcf"/>
|
||||
<entry type="NameConstant" style="#40ffff"/>
|
||||
<entry type="NameDecorator" style="#ffa500"/>
|
||||
<entry type="NameException" style="#bbbbbb"/>
|
||||
<entry type="NameFunction" style="#447fcf"/>
|
||||
<entry type="NameNamespace" style="underline #447fcf"/>
|
||||
<entry type="NameTag" style="bold #6ab825"/>
|
||||
<entry type="NameVariable" style="#40ffff"/>
|
||||
<entry type="LiteralString" style="#ed9d13"/>
|
||||
<entry type="LiteralStringOther" style="#ffa500"/>
|
||||
<entry type="LiteralNumber" style="#3677a9"/>
|
||||
<entry type="OperatorWord" style="bold #6ab825"/>
|
||||
<entry type="Comment" style="italic #999999"/>
|
||||
<entry type="CommentSpecial" style="bold noitalic #e50808 bg:#520000"/>
|
||||
<entry type="CommentPreproc" style="bold noitalic #cd2828"/>
|
||||
<entry type="GenericDeleted" style="#d22323"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#d22323"/>
|
||||
<entry type="GenericHeading" style="bold #ffffff"/>
|
||||
<entry type="GenericInserted" style="#589819"/>
|
||||
<entry type="GenericOutput" style="#cccccc"/>
|
||||
<entry type="GenericPrompt" style="#aaaaaa"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="underline #ffffff"/>
|
||||
<entry type="GenericTraceback" style="#d22323"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#666666"/>
|
||||
</style>
|
@ -1,75 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
// colors and palettes based on https://www.nordtheme.com/docs/colors-and-palettes
|
||||
nord0 = "#2e3440"
|
||||
nord1 = "#3b4252" // nolint
|
||||
nord2 = "#434c5e" // nolint
|
||||
nord3 = "#4c566a"
|
||||
nord3b = "#616e87"
|
||||
|
||||
nord4 = "#d8dee9"
|
||||
nord5 = "#e5e9f0" // nolint
|
||||
nord6 = "#eceff4"
|
||||
|
||||
nord7 = "#8fbcbb"
|
||||
nord8 = "#88c0d0"
|
||||
nord9 = "#81a1c1"
|
||||
nord10 = "#5e81ac"
|
||||
|
||||
nord11 = "#bf616a"
|
||||
nord12 = "#d08770"
|
||||
nord13 = "#ebcb8b"
|
||||
nord14 = "#a3be8c"
|
||||
nord15 = "#b48ead"
|
||||
)
|
||||
|
||||
// Nord, an arctic, north-bluish color palette
|
||||
var Nord = Register(chroma.MustNewStyle("nord", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: nord4,
|
||||
chroma.Comment: "italic " + nord3b,
|
||||
chroma.CommentPreproc: nord10,
|
||||
chroma.Keyword: "bold " + nord9,
|
||||
chroma.KeywordPseudo: "nobold " + nord9,
|
||||
chroma.KeywordType: "nobold " + nord9,
|
||||
chroma.Operator: nord9,
|
||||
chroma.OperatorWord: "bold " + nord9,
|
||||
chroma.Name: nord4,
|
||||
chroma.NameBuiltin: nord9,
|
||||
chroma.NameFunction: nord8,
|
||||
chroma.NameClass: nord7,
|
||||
chroma.NameNamespace: nord7,
|
||||
chroma.NameException: nord11,
|
||||
chroma.NameVariable: nord4,
|
||||
chroma.NameConstant: nord7,
|
||||
chroma.NameLabel: nord7,
|
||||
chroma.NameEntity: nord12,
|
||||
chroma.NameAttribute: nord7,
|
||||
chroma.NameTag: nord9,
|
||||
chroma.NameDecorator: nord12,
|
||||
chroma.Punctuation: nord6,
|
||||
chroma.LiteralString: nord14,
|
||||
chroma.LiteralStringDoc: nord3b,
|
||||
chroma.LiteralStringInterpol: nord14,
|
||||
chroma.LiteralStringEscape: nord13,
|
||||
chroma.LiteralStringRegex: nord13,
|
||||
chroma.LiteralStringSymbol: nord14,
|
||||
chroma.LiteralStringOther: nord14,
|
||||
chroma.LiteralNumber: nord15,
|
||||
chroma.GenericHeading: "bold " + nord8,
|
||||
chroma.GenericSubheading: "bold " + nord8,
|
||||
chroma.GenericDeleted: nord11,
|
||||
chroma.GenericInserted: nord14,
|
||||
chroma.GenericError: nord11,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold " + nord3,
|
||||
chroma.GenericOutput: nord4,
|
||||
chroma.GenericTraceback: nord11,
|
||||
chroma.Error: nord11,
|
||||
chroma.Background: nord4 + " bg:" + nord0,
|
||||
}))
|
44
styles/nord.xml
Normal file
44
styles/nord.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<style name="nord">
|
||||
<entry type="Error" style="#bf616a"/>
|
||||
<entry type="Background" style="#d8dee9 bg:#2e3440"/>
|
||||
<entry type="Keyword" style="bold #81a1c1"/>
|
||||
<entry type="KeywordPseudo" style="nobold #81a1c1"/>
|
||||
<entry type="KeywordType" style="nobold #81a1c1"/>
|
||||
<entry type="Name" style="#d8dee9"/>
|
||||
<entry type="NameAttribute" style="#8fbcbb"/>
|
||||
<entry type="NameBuiltin" style="#81a1c1"/>
|
||||
<entry type="NameClass" style="#8fbcbb"/>
|
||||
<entry type="NameConstant" style="#8fbcbb"/>
|
||||
<entry type="NameDecorator" style="#d08770"/>
|
||||
<entry type="NameEntity" style="#d08770"/>
|
||||
<entry type="NameException" style="#bf616a"/>
|
||||
<entry type="NameFunction" style="#88c0d0"/>
|
||||
<entry type="NameLabel" style="#8fbcbb"/>
|
||||
<entry type="NameNamespace" style="#8fbcbb"/>
|
||||
<entry type="NameTag" style="#81a1c1"/>
|
||||
<entry type="NameVariable" style="#d8dee9"/>
|
||||
<entry type="LiteralString" style="#a3be8c"/>
|
||||
<entry type="LiteralStringDoc" style="#616e87"/>
|
||||
<entry type="LiteralStringEscape" style="#ebcb8b"/>
|
||||
<entry type="LiteralStringInterpol" style="#a3be8c"/>
|
||||
<entry type="LiteralStringOther" style="#a3be8c"/>
|
||||
<entry type="LiteralStringRegex" style="#ebcb8b"/>
|
||||
<entry type="LiteralStringSymbol" style="#a3be8c"/>
|
||||
<entry type="LiteralNumber" style="#b48ead"/>
|
||||
<entry type="Operator" style="#81a1c1"/>
|
||||
<entry type="OperatorWord" style="bold #81a1c1"/>
|
||||
<entry type="Punctuation" style="#eceff4"/>
|
||||
<entry type="Comment" style="italic #616e87"/>
|
||||
<entry type="CommentPreproc" style="#5e81ac"/>
|
||||
<entry type="GenericDeleted" style="#bf616a"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#bf616a"/>
|
||||
<entry type="GenericHeading" style="bold #88c0d0"/>
|
||||
<entry type="GenericInserted" style="#a3be8c"/>
|
||||
<entry type="GenericOutput" style="#d8dee9"/>
|
||||
<entry type="GenericPrompt" style="bold #4c566a"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #88c0d0"/>
|
||||
<entry type="GenericTraceback" style="#bf616a"/>
|
||||
<entry type="TextWhitespace" style="#d8dee9"/>
|
||||
</style>
|
@ -1,17 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// 1S:Designer color palette
|
||||
var OnesEnterprise = Register(chroma.MustNewStyle("onesenterprise", chroma.StyleEntries{
|
||||
chroma.Text: "#000000",
|
||||
chroma.Comment: "#008000",
|
||||
chroma.CommentPreproc: "#963200",
|
||||
chroma.Operator: "#FF0000",
|
||||
chroma.Keyword: "#FF0000",
|
||||
chroma.Punctuation: "#FF0000",
|
||||
chroma.LiteralString: "#000000",
|
||||
chroma.Name: "#0000FF",
|
||||
}))
|
10
styles/onesenterprise.xml
Normal file
10
styles/onesenterprise.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<style name="onesenterprise">
|
||||
<entry type="Keyword" style="#ff0000"/>
|
||||
<entry type="Name" style="#0000ff"/>
|
||||
<entry type="LiteralString" style="#000000"/>
|
||||
<entry type="Operator" style="#ff0000"/>
|
||||
<entry type="Punctuation" style="#ff0000"/>
|
||||
<entry type="Comment" style="#008000"/>
|
||||
<entry type="CommentPreproc" style="#963200"/>
|
||||
<entry type="Text" style="#000000"/>
|
||||
</style>
|
@ -1,44 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// ParaisoDark style.
|
||||
var ParaisoDark = Register(chroma.MustNewStyle("paraiso-dark", chroma.StyleEntries{
|
||||
chroma.Text: "#e7e9db",
|
||||
chroma.Error: "#ef6155",
|
||||
chroma.Comment: "#776e71",
|
||||
chroma.Keyword: "#815ba4",
|
||||
chroma.KeywordNamespace: "#5bc4bf",
|
||||
chroma.KeywordType: "#fec418",
|
||||
chroma.Operator: "#5bc4bf",
|
||||
chroma.Punctuation: "#e7e9db",
|
||||
chroma.Name: "#e7e9db",
|
||||
chroma.NameAttribute: "#06b6ef",
|
||||
chroma.NameClass: "#fec418",
|
||||
chroma.NameConstant: "#ef6155",
|
||||
chroma.NameDecorator: "#5bc4bf",
|
||||
chroma.NameException: "#ef6155",
|
||||
chroma.NameFunction: "#06b6ef",
|
||||
chroma.NameNamespace: "#fec418",
|
||||
chroma.NameOther: "#06b6ef",
|
||||
chroma.NameTag: "#5bc4bf",
|
||||
chroma.NameVariable: "#ef6155",
|
||||
chroma.LiteralNumber: "#f99b15",
|
||||
chroma.Literal: "#f99b15",
|
||||
chroma.LiteralDate: "#48b685",
|
||||
chroma.LiteralString: "#48b685",
|
||||
chroma.LiteralStringChar: "#e7e9db",
|
||||
chroma.LiteralStringDoc: "#776e71",
|
||||
chroma.LiteralStringEscape: "#f99b15",
|
||||
chroma.LiteralStringInterpol: "#f99b15",
|
||||
chroma.GenericDeleted: "#ef6155",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #e7e9db",
|
||||
chroma.GenericInserted: "#48b685",
|
||||
chroma.GenericPrompt: "bold #776e71",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "bold #5bc4bf",
|
||||
chroma.Background: "bg:#2f1e2e",
|
||||
}))
|
37
styles/paraiso-dark.xml
Normal file
37
styles/paraiso-dark.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<style name="paraiso-dark">
|
||||
<entry type="Error" style="#ef6155"/>
|
||||
<entry type="Background" style="bg:#2f1e2e"/>
|
||||
<entry type="Keyword" style="#815ba4"/>
|
||||
<entry type="KeywordNamespace" style="#5bc4bf"/>
|
||||
<entry type="KeywordType" style="#fec418"/>
|
||||
<entry type="Name" style="#e7e9db"/>
|
||||
<entry type="NameAttribute" style="#06b6ef"/>
|
||||
<entry type="NameClass" style="#fec418"/>
|
||||
<entry type="NameConstant" style="#ef6155"/>
|
||||
<entry type="NameDecorator" style="#5bc4bf"/>
|
||||
<entry type="NameException" style="#ef6155"/>
|
||||
<entry type="NameFunction" style="#06b6ef"/>
|
||||
<entry type="NameNamespace" style="#fec418"/>
|
||||
<entry type="NameOther" style="#06b6ef"/>
|
||||
<entry type="NameTag" style="#5bc4bf"/>
|
||||
<entry type="NameVariable" style="#ef6155"/>
|
||||
<entry type="Literal" style="#f99b15"/>
|
||||
<entry type="LiteralDate" style="#48b685"/>
|
||||
<entry type="LiteralString" style="#48b685"/>
|
||||
<entry type="LiteralStringChar" style="#e7e9db"/>
|
||||
<entry type="LiteralStringDoc" style="#776e71"/>
|
||||
<entry type="LiteralStringEscape" style="#f99b15"/>
|
||||
<entry type="LiteralStringInterpol" style="#f99b15"/>
|
||||
<entry type="LiteralNumber" style="#f99b15"/>
|
||||
<entry type="Operator" style="#5bc4bf"/>
|
||||
<entry type="Punctuation" style="#e7e9db"/>
|
||||
<entry type="Comment" style="#776e71"/>
|
||||
<entry type="GenericDeleted" style="#ef6155"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericHeading" style="bold #e7e9db"/>
|
||||
<entry type="GenericInserted" style="#48b685"/>
|
||||
<entry type="GenericPrompt" style="bold #776e71"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #5bc4bf"/>
|
||||
<entry type="Text" style="#e7e9db"/>
|
||||
</style>
|
@ -1,44 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// ParaisoLight style.
|
||||
var ParaisoLight = Register(chroma.MustNewStyle("paraiso-light", chroma.StyleEntries{
|
||||
chroma.Text: "#2f1e2e",
|
||||
chroma.Error: "#ef6155",
|
||||
chroma.Comment: "#8d8687",
|
||||
chroma.Keyword: "#815ba4",
|
||||
chroma.KeywordNamespace: "#5bc4bf",
|
||||
chroma.KeywordType: "#fec418",
|
||||
chroma.Operator: "#5bc4bf",
|
||||
chroma.Punctuation: "#2f1e2e",
|
||||
chroma.Name: "#2f1e2e",
|
||||
chroma.NameAttribute: "#06b6ef",
|
||||
chroma.NameClass: "#fec418",
|
||||
chroma.NameConstant: "#ef6155",
|
||||
chroma.NameDecorator: "#5bc4bf",
|
||||
chroma.NameException: "#ef6155",
|
||||
chroma.NameFunction: "#06b6ef",
|
||||
chroma.NameNamespace: "#fec418",
|
||||
chroma.NameOther: "#06b6ef",
|
||||
chroma.NameTag: "#5bc4bf",
|
||||
chroma.NameVariable: "#ef6155",
|
||||
chroma.LiteralNumber: "#f99b15",
|
||||
chroma.Literal: "#f99b15",
|
||||
chroma.LiteralDate: "#48b685",
|
||||
chroma.LiteralString: "#48b685",
|
||||
chroma.LiteralStringChar: "#2f1e2e",
|
||||
chroma.LiteralStringDoc: "#8d8687",
|
||||
chroma.LiteralStringEscape: "#f99b15",
|
||||
chroma.LiteralStringInterpol: "#f99b15",
|
||||
chroma.GenericDeleted: "#ef6155",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericHeading: "bold #2f1e2e",
|
||||
chroma.GenericInserted: "#48b685",
|
||||
chroma.GenericPrompt: "bold #8d8687",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "bold #5bc4bf",
|
||||
chroma.Background: "bg:#e7e9db",
|
||||
}))
|
37
styles/paraiso-light.xml
Normal file
37
styles/paraiso-light.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<style name="paraiso-light">
|
||||
<entry type="Error" style="#ef6155"/>
|
||||
<entry type="Background" style="bg:#e7e9db"/>
|
||||
<entry type="Keyword" style="#815ba4"/>
|
||||
<entry type="KeywordNamespace" style="#5bc4bf"/>
|
||||
<entry type="KeywordType" style="#fec418"/>
|
||||
<entry type="Name" style="#2f1e2e"/>
|
||||
<entry type="NameAttribute" style="#06b6ef"/>
|
||||
<entry type="NameClass" style="#fec418"/>
|
||||
<entry type="NameConstant" style="#ef6155"/>
|
||||
<entry type="NameDecorator" style="#5bc4bf"/>
|
||||
<entry type="NameException" style="#ef6155"/>
|
||||
<entry type="NameFunction" style="#06b6ef"/>
|
||||
<entry type="NameNamespace" style="#fec418"/>
|
||||
<entry type="NameOther" style="#06b6ef"/>
|
||||
<entry type="NameTag" style="#5bc4bf"/>
|
||||
<entry type="NameVariable" style="#ef6155"/>
|
||||
<entry type="Literal" style="#f99b15"/>
|
||||
<entry type="LiteralDate" style="#48b685"/>
|
||||
<entry type="LiteralString" style="#48b685"/>
|
||||
<entry type="LiteralStringChar" style="#2f1e2e"/>
|
||||
<entry type="LiteralStringDoc" style="#8d8687"/>
|
||||
<entry type="LiteralStringEscape" style="#f99b15"/>
|
||||
<entry type="LiteralStringInterpol" style="#f99b15"/>
|
||||
<entry type="LiteralNumber" style="#f99b15"/>
|
||||
<entry type="Operator" style="#5bc4bf"/>
|
||||
<entry type="Punctuation" style="#2f1e2e"/>
|
||||
<entry type="Comment" style="#8d8687"/>
|
||||
<entry type="GenericDeleted" style="#ef6155"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericHeading" style="bold #2f1e2e"/>
|
||||
<entry type="GenericInserted" style="#48b685"/>
|
||||
<entry type="GenericPrompt" style="bold #8d8687"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #5bc4bf"/>
|
||||
<entry type="Text" style="#2f1e2e"/>
|
||||
</style>
|
@ -1,52 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Pastie style.
|
||||
var Pastie = Register(chroma.MustNewStyle("pastie", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "#888888",
|
||||
chroma.CommentPreproc: "bold #cc0000",
|
||||
chroma.CommentSpecial: "bg:#fff0f0 bold #cc0000",
|
||||
chroma.LiteralString: "bg:#fff0f0 #dd2200",
|
||||
chroma.LiteralStringRegex: "bg:#fff0ff #008800",
|
||||
chroma.LiteralStringOther: "bg:#f0fff0 #22bb22",
|
||||
chroma.LiteralStringSymbol: "#aa6600",
|
||||
chroma.LiteralStringInterpol: "#3333bb",
|
||||
chroma.LiteralStringEscape: "#0044dd",
|
||||
chroma.OperatorWord: "#008800",
|
||||
chroma.Keyword: "bold #008800",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "#888888",
|
||||
chroma.NameClass: "bold #bb0066",
|
||||
chroma.NameException: "bold #bb0066",
|
||||
chroma.NameFunction: "bold #0066bb",
|
||||
chroma.NameProperty: "bold #336699",
|
||||
chroma.NameNamespace: "bold #bb0066",
|
||||
chroma.NameBuiltin: "#003388",
|
||||
chroma.NameVariable: "#336699",
|
||||
chroma.NameVariableClass: "#336699",
|
||||
chroma.NameVariableInstance: "#3333bb",
|
||||
chroma.NameVariableGlobal: "#dd7700",
|
||||
chroma.NameConstant: "bold #003366",
|
||||
chroma.NameTag: "bold #bb0066",
|
||||
chroma.NameAttribute: "#336699",
|
||||
chroma.NameDecorator: "#555555",
|
||||
chroma.NameLabel: "italic #336699",
|
||||
chroma.LiteralNumber: "bold #0000DD",
|
||||
chroma.GenericHeading: "#333",
|
||||
chroma.GenericSubheading: "#666",
|
||||
chroma.GenericDeleted: "bg:#ffdddd #000000",
|
||||
chroma.GenericInserted: "bg:#ddffdd #000000",
|
||||
chroma.GenericError: "#aa0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "#555555",
|
||||
chroma.GenericOutput: "#888888",
|
||||
chroma.GenericTraceback: "#aa0000",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#e3d2d2 #a61717",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
45
styles/pastie.xml
Normal file
45
styles/pastie.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<style name="pastie">
|
||||
<entry type="Error" style="#a61717 bg:#e3d2d2"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #008800"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="#888888"/>
|
||||
<entry type="NameAttribute" style="#336699"/>
|
||||
<entry type="NameBuiltin" style="#003388"/>
|
||||
<entry type="NameClass" style="bold #bb0066"/>
|
||||
<entry type="NameConstant" style="bold #003366"/>
|
||||
<entry type="NameDecorator" style="#555555"/>
|
||||
<entry type="NameException" style="bold #bb0066"/>
|
||||
<entry type="NameFunction" style="bold #0066bb"/>
|
||||
<entry type="NameLabel" style="italic #336699"/>
|
||||
<entry type="NameNamespace" style="bold #bb0066"/>
|
||||
<entry type="NameProperty" style="bold #336699"/>
|
||||
<entry type="NameTag" style="bold #bb0066"/>
|
||||
<entry type="NameVariable" style="#336699"/>
|
||||
<entry type="NameVariableClass" style="#336699"/>
|
||||
<entry type="NameVariableGlobal" style="#dd7700"/>
|
||||
<entry type="NameVariableInstance" style="#3333bb"/>
|
||||
<entry type="LiteralString" style="#dd2200 bg:#fff0f0"/>
|
||||
<entry type="LiteralStringEscape" style="#0044dd"/>
|
||||
<entry type="LiteralStringInterpol" style="#3333bb"/>
|
||||
<entry type="LiteralStringOther" style="#22bb22 bg:#f0fff0"/>
|
||||
<entry type="LiteralStringRegex" style="#008800 bg:#fff0ff"/>
|
||||
<entry type="LiteralStringSymbol" style="#aa6600"/>
|
||||
<entry type="LiteralNumber" style="bold #0000dd"/>
|
||||
<entry type="OperatorWord" style="#008800"/>
|
||||
<entry type="Comment" style="#888888"/>
|
||||
<entry type="CommentSpecial" style="bold #cc0000 bg:#fff0f0"/>
|
||||
<entry type="CommentPreproc" style="bold #cc0000"/>
|
||||
<entry type="GenericDeleted" style="#000000 bg:#ffdddd"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#aa0000"/>
|
||||
<entry type="GenericHeading" style="#333333"/>
|
||||
<entry type="GenericInserted" style="#000000 bg:#ddffdd"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="#555555"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#666666"/>
|
||||
<entry type="GenericTraceback" style="#aa0000"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,44 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Perldoc style.
|
||||
var Perldoc = Register(chroma.MustNewStyle("perldoc", chroma.StyleEntries{
|
||||
chroma.TextWhitespace: "#bbbbbb",
|
||||
chroma.Comment: "#228B22",
|
||||
chroma.CommentPreproc: "#1e889b",
|
||||
chroma.CommentSpecial: "#8B008B bold",
|
||||
chroma.LiteralString: "#CD5555",
|
||||
chroma.LiteralStringHeredoc: "#1c7e71 italic",
|
||||
chroma.LiteralStringRegex: "#1c7e71",
|
||||
chroma.LiteralStringOther: "#cb6c20",
|
||||
chroma.LiteralNumber: "#B452CD",
|
||||
chroma.OperatorWord: "#8B008B",
|
||||
chroma.Keyword: "#8B008B bold",
|
||||
chroma.KeywordType: "#00688B",
|
||||
chroma.NameClass: "#008b45 bold",
|
||||
chroma.NameException: "#008b45 bold",
|
||||
chroma.NameFunction: "#008b45",
|
||||
chroma.NameNamespace: "#008b45 underline",
|
||||
chroma.NameVariable: "#00688B",
|
||||
chroma.NameConstant: "#00688B",
|
||||
chroma.NameDecorator: "#707a7c",
|
||||
chroma.NameTag: "#8B008B bold",
|
||||
chroma.NameAttribute: "#658b00",
|
||||
chroma.NameBuiltin: "#658b00",
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#aa0000",
|
||||
chroma.GenericInserted: "#00aa00",
|
||||
chroma.GenericError: "#aa0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "#555555",
|
||||
chroma.GenericOutput: "#888888",
|
||||
chroma.GenericTraceback: "#aa0000",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Error: "bg:#e3d2d2 #a61717",
|
||||
chroma.Background: " bg:#eeeedd",
|
||||
}))
|
37
styles/perldoc.xml
Normal file
37
styles/perldoc.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<style name="perldoc">
|
||||
<entry type="Error" style="#a61717 bg:#e3d2d2"/>
|
||||
<entry type="Background" style="bg:#eeeedd"/>
|
||||
<entry type="Keyword" style="bold #8b008b"/>
|
||||
<entry type="KeywordType" style="#00688b"/>
|
||||
<entry type="NameAttribute" style="#658b00"/>
|
||||
<entry type="NameBuiltin" style="#658b00"/>
|
||||
<entry type="NameClass" style="bold #008b45"/>
|
||||
<entry type="NameConstant" style="#00688b"/>
|
||||
<entry type="NameDecorator" style="#707a7c"/>
|
||||
<entry type="NameException" style="bold #008b45"/>
|
||||
<entry type="NameFunction" style="#008b45"/>
|
||||
<entry type="NameNamespace" style="underline #008b45"/>
|
||||
<entry type="NameTag" style="bold #8b008b"/>
|
||||
<entry type="NameVariable" style="#00688b"/>
|
||||
<entry type="LiteralString" style="#cd5555"/>
|
||||
<entry type="LiteralStringHeredoc" style="italic #1c7e71"/>
|
||||
<entry type="LiteralStringOther" style="#cb6c20"/>
|
||||
<entry type="LiteralStringRegex" style="#1c7e71"/>
|
||||
<entry type="LiteralNumber" style="#b452cd"/>
|
||||
<entry type="OperatorWord" style="#8b008b"/>
|
||||
<entry type="Comment" style="#228b22"/>
|
||||
<entry type="CommentSpecial" style="bold #8b008b"/>
|
||||
<entry type="CommentPreproc" style="#1e889b"/>
|
||||
<entry type="GenericDeleted" style="#aa0000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#aa0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00aa00"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="#555555"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#aa0000"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,55 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// Pygments default theme.
|
||||
var Pygments = Register(chroma.MustNewStyle("pygments", chroma.StyleEntries{
|
||||
chroma.Whitespace: "#bbbbbb",
|
||||
chroma.Comment: "italic #408080",
|
||||
chroma.CommentPreproc: "noitalic #BC7A00",
|
||||
|
||||
chroma.Keyword: "bold #008000",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "nobold #B00040",
|
||||
|
||||
chroma.Operator: "#666666",
|
||||
chroma.OperatorWord: "bold #AA22FF",
|
||||
|
||||
chroma.NameBuiltin: "#008000",
|
||||
chroma.NameFunction: "#0000FF",
|
||||
chroma.NameClass: "bold #0000FF",
|
||||
chroma.NameNamespace: "bold #0000FF",
|
||||
chroma.NameException: "bold #D2413A",
|
||||
chroma.NameVariable: "#19177C",
|
||||
chroma.NameConstant: "#880000",
|
||||
chroma.NameLabel: "#A0A000",
|
||||
chroma.NameEntity: "bold #999999",
|
||||
chroma.NameAttribute: "#7D9029",
|
||||
chroma.NameTag: "bold #008000",
|
||||
chroma.NameDecorator: "#AA22FF",
|
||||
|
||||
chroma.String: "#BA2121",
|
||||
chroma.StringDoc: "italic",
|
||||
chroma.StringInterpol: "bold #BB6688",
|
||||
chroma.StringEscape: "bold #BB6622",
|
||||
chroma.StringRegex: "#BB6688",
|
||||
chroma.StringSymbol: "#19177C",
|
||||
chroma.StringOther: "#008000",
|
||||
chroma.Number: "#666666",
|
||||
|
||||
chroma.GenericHeading: "bold #000080",
|
||||
chroma.GenericSubheading: "bold #800080",
|
||||
chroma.GenericDeleted: "#A00000",
|
||||
chroma.GenericInserted: "#00A000",
|
||||
chroma.GenericError: "#FF0000",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericPrompt: "bold #000080",
|
||||
chroma.GenericOutput: "#888",
|
||||
chroma.GenericTraceback: "#04D",
|
||||
chroma.GenericUnderline: "underline",
|
||||
|
||||
chroma.Error: "border:#FF0000",
|
||||
}))
|
42
styles/pygments.xml
Normal file
42
styles/pygments.xml
Normal file
@ -0,0 +1,42 @@
|
||||
<style name="pygments">
|
||||
<entry type="Error" style="border:#ff0000"/>
|
||||
<entry type="Keyword" style="bold #008000"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="nobold #b00040"/>
|
||||
<entry type="NameAttribute" style="#7d9029"/>
|
||||
<entry type="NameBuiltin" style="#008000"/>
|
||||
<entry type="NameClass" style="bold #0000ff"/>
|
||||
<entry type="NameConstant" style="#880000"/>
|
||||
<entry type="NameDecorator" style="#aa22ff"/>
|
||||
<entry type="NameEntity" style="bold #999999"/>
|
||||
<entry type="NameException" style="bold #d2413a"/>
|
||||
<entry type="NameFunction" style="#0000ff"/>
|
||||
<entry type="NameLabel" style="#a0a000"/>
|
||||
<entry type="NameNamespace" style="bold #0000ff"/>
|
||||
<entry type="NameTag" style="bold #008000"/>
|
||||
<entry type="NameVariable" style="#19177c"/>
|
||||
<entry type="LiteralString" style="#ba2121"/>
|
||||
<entry type="LiteralStringDoc" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold #bb6622"/>
|
||||
<entry type="LiteralStringInterpol" style="bold #bb6688"/>
|
||||
<entry type="LiteralStringOther" style="#008000"/>
|
||||
<entry type="LiteralStringRegex" style="#bb6688"/>
|
||||
<entry type="LiteralStringSymbol" style="#19177c"/>
|
||||
<entry type="LiteralNumber" style="#666666"/>
|
||||
<entry type="Operator" style="#666666"/>
|
||||
<entry type="OperatorWord" style="bold #aa22ff"/>
|
||||
<entry type="Comment" style="italic #408080"/>
|
||||
<entry type="CommentPreproc" style="noitalic #bc7a00"/>
|
||||
<entry type="GenericDeleted" style="#a00000"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #000080"/>
|
||||
<entry type="GenericInserted" style="#00a000"/>
|
||||
<entry type="GenericOutput" style="#888888"/>
|
||||
<entry type="GenericPrompt" style="bold #000080"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #800080"/>
|
||||
<entry type="GenericTraceback" style="#0044dd"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="TextWhitespace" style="#bbbbbb"/>
|
||||
</style>
|
@ -1,47 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
// RainbowDash style.
|
||||
var RainbowDash = Register(chroma.MustNewStyle("rainbow_dash", chroma.StyleEntries{
|
||||
chroma.Comment: "italic #0080ff",
|
||||
chroma.CommentPreproc: "noitalic",
|
||||
chroma.CommentSpecial: "bold",
|
||||
chroma.Error: "bg:#cc0000 #ffffff",
|
||||
chroma.GenericDeleted: "border:#c5060b bg:#ffcccc",
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericError: "#ff0000",
|
||||
chroma.GenericHeading: "bold #2c5dcd",
|
||||
chroma.GenericInserted: "border:#00cc00 bg:#ccffcc",
|
||||
chroma.GenericOutput: "#aaaaaa",
|
||||
chroma.GenericPrompt: "bold #2c5dcd",
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: "bold #2c5dcd",
|
||||
chroma.GenericTraceback: "#c5060b",
|
||||
chroma.GenericUnderline: "underline",
|
||||
chroma.Keyword: "bold #2c5dcd",
|
||||
chroma.KeywordPseudo: "nobold",
|
||||
chroma.KeywordType: "#5918bb",
|
||||
chroma.NameAttribute: "italic #2c5dcd",
|
||||
chroma.NameBuiltin: "bold #5918bb",
|
||||
chroma.NameClass: "underline",
|
||||
chroma.NameConstant: "#318495",
|
||||
chroma.NameDecorator: "bold #ff8000",
|
||||
chroma.NameEntity: "bold #5918bb",
|
||||
chroma.NameException: "bold #5918bb",
|
||||
chroma.NameFunction: "bold #ff8000",
|
||||
chroma.NameTag: "bold #2c5dcd",
|
||||
chroma.LiteralNumber: "bold #5918bb",
|
||||
chroma.Operator: "#2c5dcd",
|
||||
chroma.OperatorWord: "bold",
|
||||
chroma.LiteralString: "#00cc66",
|
||||
chroma.LiteralStringDoc: "italic",
|
||||
chroma.LiteralStringEscape: "bold #c5060b",
|
||||
chroma.LiteralStringOther: "#318495",
|
||||
chroma.LiteralStringSymbol: "bold #c5060b",
|
||||
chroma.Text: "#4d4d4d",
|
||||
chroma.TextWhitespace: "#cbcbcb",
|
||||
chroma.Background: " bg:#ffffff",
|
||||
}))
|
40
styles/rainbow_dash.xml
Normal file
40
styles/rainbow_dash.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<style name="rainbow_dash">
|
||||
<entry type="Error" style="#ffffff bg:#cc0000"/>
|
||||
<entry type="Background" style="bg:#ffffff"/>
|
||||
<entry type="Keyword" style="bold #2c5dcd"/>
|
||||
<entry type="KeywordPseudo" style="nobold"/>
|
||||
<entry type="KeywordType" style="#5918bb"/>
|
||||
<entry type="NameAttribute" style="italic #2c5dcd"/>
|
||||
<entry type="NameBuiltin" style="bold #5918bb"/>
|
||||
<entry type="NameClass" style="underline"/>
|
||||
<entry type="NameConstant" style="#318495"/>
|
||||
<entry type="NameDecorator" style="bold #ff8000"/>
|
||||
<entry type="NameEntity" style="bold #5918bb"/>
|
||||
<entry type="NameException" style="bold #5918bb"/>
|
||||
<entry type="NameFunction" style="bold #ff8000"/>
|
||||
<entry type="NameTag" style="bold #2c5dcd"/>
|
||||
<entry type="LiteralString" style="#00cc66"/>
|
||||
<entry type="LiteralStringDoc" style="italic"/>
|
||||
<entry type="LiteralStringEscape" style="bold #c5060b"/>
|
||||
<entry type="LiteralStringOther" style="#318495"/>
|
||||
<entry type="LiteralStringSymbol" style="bold #c5060b"/>
|
||||
<entry type="LiteralNumber" style="bold #5918bb"/>
|
||||
<entry type="Operator" style="#2c5dcd"/>
|
||||
<entry type="OperatorWord" style="bold"/>
|
||||
<entry type="Comment" style="italic #0080ff"/>
|
||||
<entry type="CommentSpecial" style="bold"/>
|
||||
<entry type="CommentPreproc" style="noitalic"/>
|
||||
<entry type="GenericDeleted" style="bg:#ffcccc border:#c5060b"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericError" style="#ff0000"/>
|
||||
<entry type="GenericHeading" style="bold #2c5dcd"/>
|
||||
<entry type="GenericInserted" style="bg:#ccffcc border:#00cc00"/>
|
||||
<entry type="GenericOutput" style="#aaaaaa"/>
|
||||
<entry type="GenericPrompt" style="bold #2c5dcd"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="bold #2c5dcd"/>
|
||||
<entry type="GenericTraceback" style="#c5060b"/>
|
||||
<entry type="GenericUnderline" style="underline"/>
|
||||
<entry type="Text" style="#4d4d4d"/>
|
||||
<entry type="TextWhitespace" style="#cbcbcb"/>
|
||||
</style>
|
@ -1,50 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
dawnBase = "#faf4ed"
|
||||
dawnOverlay = "#f2e9e1"
|
||||
dawnMuted = "#9893a5"
|
||||
dawnSubtle = "#797593"
|
||||
dawnText = "#575279"
|
||||
dawnLove = "#b4637a"
|
||||
dawnGold = "#ea9d34"
|
||||
dawnRose = "#d7827e"
|
||||
dawnPine = "#286983"
|
||||
dawnFoam = "#56949f"
|
||||
dawnIris = "#907aa9"
|
||||
)
|
||||
|
||||
// RosePine (dawn) style.
|
||||
var RosePineDawn = Register(chroma.MustNewStyle("rose-pine-dawn", chroma.StyleEntries{
|
||||
chroma.Text: dawnText,
|
||||
chroma.Error: dawnLove,
|
||||
chroma.Comment: dawnMuted,
|
||||
chroma.Keyword: dawnPine,
|
||||
chroma.KeywordNamespace: dawnIris,
|
||||
chroma.Operator: dawnSubtle,
|
||||
chroma.Punctuation: dawnSubtle,
|
||||
chroma.Name: dawnRose,
|
||||
chroma.NameAttribute: dawnRose,
|
||||
chroma.NameClass: dawnFoam,
|
||||
chroma.NameConstant: dawnGold,
|
||||
chroma.NameDecorator: dawnSubtle,
|
||||
chroma.NameException: dawnPine,
|
||||
chroma.NameFunction: dawnRose,
|
||||
chroma.NameOther: dawnText,
|
||||
chroma.NameTag: dawnRose,
|
||||
chroma.LiteralNumber: dawnGold,
|
||||
chroma.Literal: dawnGold,
|
||||
chroma.LiteralDate: dawnGold,
|
||||
chroma.LiteralString: dawnGold,
|
||||
chroma.LiteralStringEscape: dawnPine,
|
||||
chroma.GenericDeleted: dawnLove,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericInserted: dawnFoam,
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: dawnOverlay,
|
||||
chroma.Background: "bg:" + dawnBase,
|
||||
}))
|
29
styles/rose-pine-dawn.xml
Normal file
29
styles/rose-pine-dawn.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<style name="rose-pine-dawn">
|
||||
<entry type="Error" style="#b4637a"/>
|
||||
<entry type="Background" style="bg:#faf4ed"/>
|
||||
<entry type="Keyword" style="#286983"/>
|
||||
<entry type="KeywordNamespace" style="#907aa9"/>
|
||||
<entry type="Name" style="#d7827e"/>
|
||||
<entry type="NameAttribute" style="#d7827e"/>
|
||||
<entry type="NameClass" style="#56949f"/>
|
||||
<entry type="NameConstant" style="#ea9d34"/>
|
||||
<entry type="NameDecorator" style="#797593"/>
|
||||
<entry type="NameException" style="#286983"/>
|
||||
<entry type="NameFunction" style="#d7827e"/>
|
||||
<entry type="NameOther" style="#575279"/>
|
||||
<entry type="NameTag" style="#d7827e"/>
|
||||
<entry type="Literal" style="#ea9d34"/>
|
||||
<entry type="LiteralDate" style="#ea9d34"/>
|
||||
<entry type="LiteralString" style="#ea9d34"/>
|
||||
<entry type="LiteralStringEscape" style="#286983"/>
|
||||
<entry type="LiteralNumber" style="#ea9d34"/>
|
||||
<entry type="Operator" style="#797593"/>
|
||||
<entry type="Punctuation" style="#797593"/>
|
||||
<entry type="Comment" style="#9893a5"/>
|
||||
<entry type="GenericDeleted" style="#b4637a"/>
|
||||
<entry type="GenericEmph" style="italic"/>
|
||||
<entry type="GenericInserted" style="#56949f"/>
|
||||
<entry type="GenericStrong" style="bold"/>
|
||||
<entry type="GenericSubheading" style="#f2e9e1"/>
|
||||
<entry type="Text" style="#575279"/>
|
||||
</style>
|
@ -1,50 +0,0 @@
|
||||
package styles
|
||||
|
||||
import (
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
moonBase = "#232136"
|
||||
moonOverlay = "#393552"
|
||||
moonMuted = "#6e6a86"
|
||||
moonSubtle = "#908caa"
|
||||
moonText = "#e0def4"
|
||||
moonLove = "#eb6f92"
|
||||
moonGold = "#f6c177"
|
||||
moonRose = "#ea9a97"
|
||||
moonPine = "#3e8fb0"
|
||||
moonFoam = "#9ccfd8"
|
||||
moonIris = "#c4a7e7"
|
||||
)
|
||||
|
||||
// RosePine (moon) style.
|
||||
var RosePineMoon = Register(chroma.MustNewStyle("rose-pine-moon", chroma.StyleEntries{
|
||||
chroma.Text: moonText,
|
||||
chroma.Error: moonLove,
|
||||
chroma.Comment: moonMuted,
|
||||
chroma.Keyword: moonPine,
|
||||
chroma.KeywordNamespace: moonIris,
|
||||
chroma.Operator: moonSubtle,
|
||||
chroma.Punctuation: moonSubtle,
|
||||
chroma.Name: moonRose,
|
||||
chroma.NameAttribute: moonRose,
|
||||
chroma.NameClass: moonFoam,
|
||||
chroma.NameConstant: moonGold,
|
||||
chroma.NameDecorator: moonSubtle,
|
||||
chroma.NameException: moonPine,
|
||||
chroma.NameFunction: moonRose,
|
||||
chroma.NameOther: moonText,
|
||||
chroma.NameTag: moonRose,
|
||||
chroma.LiteralNumber: moonGold,
|
||||
chroma.Literal: moonGold,
|
||||
chroma.LiteralDate: moonGold,
|
||||
chroma.LiteralString: moonGold,
|
||||
chroma.LiteralStringEscape: moonPine,
|
||||
chroma.GenericDeleted: moonLove,
|
||||
chroma.GenericEmph: "italic",
|
||||
chroma.GenericInserted: moonFoam,
|
||||
chroma.GenericStrong: "bold",
|
||||
chroma.GenericSubheading: moonOverlay,
|
||||
chroma.Background: "bg:" + moonBase,
|
||||
}))
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user