...

Source file src/github.com/alecthomas/chroma/lexers/p/plaintext.go

Documentation: github.com/alecthomas/chroma/lexers/p

     1  package p
     2  
     3  import (
     4  	. "github.com/alecthomas/chroma" // nolint
     5  	"github.com/alecthomas/chroma/lexers/internal"
     6  )
     7  
     8  var Plaintext = internal.Register(MustNewLazyLexer(
     9  	&Config{
    10  		Name:      "plaintext",
    11  		Aliases:   []string{"text", "plain", "no-highlight"},
    12  		Filenames: []string{"*.txt"},
    13  		MimeTypes: []string{"text/plain"},
    14  		Priority:  0.1,
    15  	},
    16  	internal.PlaintextRules,
    17  ))
    18  

View as plain text