diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/gogs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index f979df0762..6c00d27764 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -18,6 +18,9 @@ function initCommentPreviewTab($form) { var $preview_tab = $form.find('.tab.segment[data-tab="' + $tab_menu.data('preview') + '"]'); $preview_tab.html(data); emojify.run($preview_tab[0]); + $('pre code', $preview_tab[0]).each(function(i, block) { + hljs.highlightBlock(block); + }); } ); }); |