diff options
Diffstat (limited to 'modules/template/highlight/highlight.go')
-rw-r--r-- | modules/template/highlight/highlight.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/template/highlight/highlight.go b/modules/template/highlight/highlight.go index bbf08e04..618b6ff0 100644 --- a/modules/template/highlight/highlight.go +++ b/modules/template/highlight/highlight.go @@ -61,7 +61,9 @@ var ( } // Extensions that are not same as highlight classes. - highlightMapping = map[string]string{} + highlightMapping = map[string]string{ + ".txt": "nohighlight", + } ) func NewContext() { |