You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
375 B
18 lines
375 B
5 years ago
|
package p
|
||
|
|
||
|
import (
|
||
|
. "github.com/alecthomas/chroma" // nolint
|
||
|
"github.com/alecthomas/chroma/lexers/internal"
|
||
|
)
|
||
|
|
||
|
var Plaintext = internal.Register(MustNewLexer(
|
||
|
&Config{
|
||
|
Name: "plaintext",
|
||
|
Aliases: []string{"text", "plain", "no-highlight"},
|
||
|
Filenames: []string{"*.txt"},
|
||
|
MimeTypes: []string{"text/plain"},
|
||
|
Priority: 0.1,
|
||
|
},
|
||
|
internal.PlaintextRules,
|
||
|
))
|