mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 17:08:29 +01:00
16 lines
357 B
Go
16 lines
357 B
Go
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"},
|
|
},
|
|
internal.PlaintextRules,
|
|
))
|