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