mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 06:39:06 +02:00
Enable sintax highlighting on diff view. Close #733
This commit is contained in:
1 parent
137a49e834
commit
2bfb8bb5fd
9 files changed
+38
-11
No files matched your search
+2
-2
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
"github.com/gogits/gogs/modules/ssh"
|
||||
"github.com/gogits/gogs/modules/template"
|
||||
"github.com/gogits/gogs/modules/template/highlight"
|
||||
"github.com/gogits/gogs/modules/user"
|
||||
)
|
||||
|
||||
@@ -56,7 +56,7 @@ func NewServices() {
|
||||
// GlobalInit is for global configuration reload-able.
|
||||
func GlobalInit() {
|
||||
setting.NewContext()
|
||||
template.NewContext()
|
||||
highlight.NewContext()
|
||||
log.Trace("Custom path: %s", setting.CustomPath)
|
||||
log.Trace("Log path: %s", setting.LogRootPath)
|
||||
models.LoadConfigs()
|
||||
|
||||
Reference in new issue
Block a user