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

Commit b5a1727

Browse files
committed
use highlightAllUnder
1 parent 74732de commit b5a1727

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

runestone/activecode/js/activecode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class ActiveCode extends RunestoneBase {
146146
}
147147
this.indicate_component_ready();
148148
if (typeof Prism !== "undefined") {
149-
Prism.highlightElement(this.containerDiv);
149+
Prism.highlightAllUnder(this.containerDiv);
150150
}
151151
}
152152

runestone/clickableArea/js/clickable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class ClickableArea extends RunestoneBase {
4747
this.addCaption("runestone");
4848
this.checkServer("clickableArea", true);
4949
if (typeof Prism !== "undefined") {
50-
Prism.highlightElement(this.containerDiv);
50+
Prism.highlightAllUnder(this.containerDiv);
5151
}
5252
}
5353
/*===========================

runestone/dragndrop/js/dragndrop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class DragNDrop extends RunestoneBase {
3939
this.caption = "Drag-N-Drop";
4040
this.addCaption("runestone");
4141
if (typeof Prism !== "undefined") {
42-
Prism.highlightElement(this.containerDiv);
42+
Prism.highlightAllUnder(this.containerDiv);
4343
}
4444
}
4545
/*======================

runestone/fitb/js/fitb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class FITB extends RunestoneBase {
3131
this.addCaption("runestone");
3232
this.checkServer("fillb", true);
3333
if (typeof Prism !== "undefined") {
34-
Prism.highlightElement(this.containerDiv);
34+
Prism.highlightAllUnder(this.containerDiv);
3535
}
3636
}
3737
// Find the script tag containing JSON in a given root DOM node.

runestone/mchoice/js/mchoice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class MultipleChoice extends RunestoneBase {
5757
runestoneMathReady.then(() => self.queueMathJax(self.containerDiv));
5858
}
5959
if (typeof Prism !== "undefined") {
60-
Prism.highlightElement(this.containerDiv);
60+
Prism.highlightAllUnder(this.containerDiv);
6161
}
6262
}
6363

runestone/parsons/js/parsons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default class Parsons extends RunestoneBase {
9494
// Check the server for an answer to complete things
9595
this.checkServer("parsons", true);
9696
if (typeof Prism !== "undefined") {
97-
Prism.highlightElement(this.containerDiv);
97+
Prism.highlightAllUnder(this.containerDiv);
9898
}
9999
}
100100
// Based on the data-fields in the original HTML, initialize options

runestone/shortanswer/js/shortanswer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class ShortAnswer extends RunestoneBase {
4242
this.addCaption("runestone");
4343
this.checkServer("shortanswer", true);
4444
if (typeof Prism !== "undefined") {
45-
Prism.highlightElement(this.containerDiv);
45+
Prism.highlightAllUnder(this.containerDiv);
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)