mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-11 12:40:16 +00:00
18 lines
375 B
Go
18 lines
375 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"},
|
||
|
Priority: 0.1,
|
||
|
},
|
||
|
internal.PlaintextRules,
|
||
|
))
|