...

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

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

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

View as plain text