From 45ae9c42dcfde33935d45e6770b54e81e1cf2343 Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 22 Jun 2023 15:24:32 +0200 Subject: [PATCH] put the used_plugins to calsses --- res/syntaxhighlighter-ng.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/syntaxhighlighter-ng.js b/res/syntaxhighlighter-ng.js index 0259a91..5328c62 100644 --- a/res/syntaxhighlighter-ng.js +++ b/res/syntaxhighlighter-ng.js @@ -28,7 +28,7 @@ function wrap_pre_tags(used_languages, used_plugins) { // convert used_plugins array to a space seperated string var used_plugins = used_plugins.join(' '); - alert(used_plugins); + // iterate through all used_languages for (let iUl = 0;iUl < used_languages.length; iUl++) { @@ -48,9 +48,9 @@ function wrap_pre_tags(used_languages, used_plugins) { { // put the content of
 tag into org_html
       org_html = preElements[iEl].innerHTML;
-      // put  tag with 'language-' class and class for 'line-numbers'
+      // put  tag with 'language-' class and plugin-classes
       // prism.js plugin around the 
 content
-      new_html = "" + org_html + "";
+      new_html = "" + org_html + "";
       // write back our new html and enjoy syntax highlightning :)
       preElements[iEl].innerHTML = new_html;
     }