summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-16 22:13:12 -0500
committerUnknwon <u@gogs.io>2015-12-16 22:13:12 -0500
commit6673dcb0380aa99da25b4d1d68cf129635fe30d9 (patch)
tree45167c2f2991818467389866847c402e3a48e906 /templates/repo/view_file.tmpl
parent71142929cc35e9b7c73b659c38b5eb42dc42bb83 (diff)
downloadgitea-6673dcb0380aa99da25b4d1d68cf129635fe30d9.tar.gz
gitea-6673dcb0380aa99da25b4d1d68cf129635fe30d9.zip
#2103 #2181 improvments of highlight class name
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 021a62f1d1..44d74f9c9b 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -40,7 +40,7 @@
<tbody>
<tr>
<td class="lines-num"></td>
- <td class="lines-code"><pre class="{{if .FileExt}}lang-{{.FileExt}}{{end}}"><code><ol class="linenums">{{.FileContent}}</ol></code></pre></td>
+ <td class="lines-code"><pre><code class="{{.HighlightClass}}"><ol class="linenums">{{.FileContent}}</ol></code></pre></td>
</tr>
</tbody>
</table>