diff --git a/Desktop/html/js/jaspwidgets.js b/Desktop/html/js/jaspwidgets.js index 348b1473c7..c87a99cf6a 100644 --- a/Desktop/html/js/jaspwidgets.js +++ b/Desktop/html/js/jaspwidgets.js @@ -641,8 +641,7 @@ JASPWidgets.RSyntaxView = JASPWidgets.View.extend({ .html("
" + rScript + "
"); setTimeout(() => { this.$el.find(".jasp-rsyntax")[0].querySelectorAll('pre code').forEach((el) => { - el.innerHTML = el.textContent; //Suppress warnings of html code tags - hljs.highlightElement(el); + el.innerHTML = hljs.highlight(el.textContent, { language: 'r' }).value; }); }, 200); },