forked from forgejo/forgejo
Enable sintax highlighting on diff view. Close #733
This commit is contained in:
parent
137a49e834
commit
2bfb8bb5fd
9 changed files with 38 additions and 11 deletions
|
@ -183,6 +183,7 @@ func Diff(ctx *middleware.Context) {
|
|||
ctx.Data["BeforeSourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", parents[0])
|
||||
}
|
||||
ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", commitID)
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
ctx.HTML(200, DIFF)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue