summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/gogs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 71f4859c3c..3459658585 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -385,6 +385,9 @@ function initRepository() {
} else {
$render_content.html(data.content);
emojify.run($render_content[0]);
+ $('pre code', $render_content[0]).each(function(i, block) {
+ hljs.highlightBlock(block);
+ });
}
});
});