diff --git a/public/js/gogs.js b/public/js/gogs.js index 71f4859c3cc..3459658585e 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); + }); } }); });