From 2988da14bed5f628cf4cd90eca0eec3c11f0c061 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 22 Apr 2021 14:04:13 -0600 Subject: add syntax highlighting to files --- templates/repo_file.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'templates/repo_file.html') diff --git a/templates/repo_file.html b/templates/repo_file.html index e01d02c..796846e 100644 --- a/templates/repo_file.html +++ b/templates/repo_file.html @@ -9,9 +9,8 @@

gityeet

+

{{ repo_path }}

{{ rel_path }}

-
-{{ blob.content()|from_utf8_lossy }}
-
+{{ blob.content()|from_utf8_lossy|highlight(rel_path)|safe }} -- cgit v1.2.3