Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
use highlightAllUnder
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Nov 5, 2022
1 parent 74732de commit b5a1727
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runestone/activecode/js/activecode.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class ActiveCode extends RunestoneBase {
}
this.indicate_component_ready();
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}

Expand Down
2 changes: 1 addition & 1 deletion runestone/clickableArea/js/clickable.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class ClickableArea extends RunestoneBase {
this.addCaption("runestone");
this.checkServer("clickableArea", true);
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}
/*===========================
Expand Down
2 changes: 1 addition & 1 deletion runestone/dragndrop/js/dragndrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class DragNDrop extends RunestoneBase {
this.caption = "Drag-N-Drop";
this.addCaption("runestone");
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}
/*======================
Expand Down
2 changes: 1 addition & 1 deletion runestone/fitb/js/fitb.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class FITB extends RunestoneBase {
this.addCaption("runestone");
this.checkServer("fillb", true);
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}
// Find the script tag containing JSON in a given root DOM node.
Expand Down
2 changes: 1 addition & 1 deletion runestone/mchoice/js/mchoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class MultipleChoice extends RunestoneBase {
runestoneMathReady.then(() => self.queueMathJax(self.containerDiv));
}
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}

Expand Down
2 changes: 1 addition & 1 deletion runestone/parsons/js/parsons.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Parsons extends RunestoneBase {
// Check the server for an answer to complete things
this.checkServer("parsons", true);
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}
// Based on the data-fields in the original HTML, initialize options
Expand Down
2 changes: 1 addition & 1 deletion runestone/shortanswer/js/shortanswer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class ShortAnswer extends RunestoneBase {
this.addCaption("runestone");
this.checkServer("shortanswer", true);
if (typeof Prism !== "undefined") {
Prism.highlightElement(this.containerDiv);
Prism.highlightAllUnder(this.containerDiv);
}
}
}
Expand Down

0 comments on commit b5a1727

Please sign in to comment.