From 6f3b61c02deffa6d2a6ba940e810e3af66ee3a0e Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 22 Apr 2014 07:58:20 +0800 Subject: [PATCH] edit js/prism --- js/ditto.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index d1b8af9..feef622 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -191,7 +191,9 @@ function router() { }).always(function() { clearInterval(loading); - Prism.highlightAll(); + $('#content code').map(function() { + Prism.highlightElement(this); + }); $(ditto.loading_id).hide(); }); }