...

Package x

import "github.com/alecthomas/chroma/lexers/x"
Overview
Index

Overview ▾

Index ▾

Package files

xml.go xorg.go

Variables

XML lexer.

var XML = internal.Register(MustNewLazyLexer(
    &Config{
        Name:      "XML",
        Aliases:   []string{"xml"},
        Filenames: []string{"*.xml", "*.xsl", "*.rss", "*.xslt", "*.xsd", "*.wsdl", "*.wsf", "*.svg", "*.csproj", "*.vcxproj", "*.fsproj"},
        MimeTypes: []string{"text/xml", "application/xml", "image/svg+xml", "application/rss+xml", "application/atom+xml"},
        DotAll:    true,
    },
    xmlRules,
))

Xorg lexer.

var Xorg = internal.Register(MustNewLazyLexer(
    &Config{
        Name:      "Xorg",
        Aliases:   []string{"xorg.conf"},
        Filenames: []string{"xorg.conf"},
        MimeTypes: []string{},
    },
    xorgRules,
))