This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
gitea
mirror of
https://github.com/go-gitea/gitea.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
210
Wiki
Activity
Browse Source
No highlighting for .txt files (
#1922
)
tags/v1.2.0-rc1
Ethan Koenig
7 years ago
parent
4a3f40460b
commit
6d613fb28e
1 changed files
with
3 additions
and
1 deletions
Split View
Show Diff Stats
3
1
modules/highlight/highlight.go
+ 3
- 1
modules/highlight/highlight.go
View File
@@ -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
Write
Preview
Loading…
Cancel
Save