From 2537e0ef77c060ee4d79d899eaf9ad9149b0bfc8 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 15 Jan 2012 16:19:12 +0100 Subject: [PATCH] Only apply syntax highlighting to code now that we know the type --- public/javascripts/dragreg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/dragreg.js b/public/javascripts/dragreg.js index a262959..741b014 100644 --- a/public/javascripts/dragreg.js +++ b/public/javascripts/dragreg.js @@ -19,7 +19,7 @@ $(document).ready(function() { stop: update_drag_info }); // FIXME: highlight text for now, until we can determine and // store what everything exactly is. - $("pre").each(function(idx, elem) { + $("pre code").each(function(idx, elem) { hljs.highlightBlock(elem, ' '); }); })