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

Commit a60a08e

Browse files
authored
Merge branch 'master' into num_fix
2 parents a99c632 + 8bfdcd2 commit a60a08e

18 files changed

Lines changed: 16515 additions & 7565 deletions

package-lock.json

Lines changed: 15740 additions & 6801 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runestone/activecode/activecode.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class ActiveCode(RunestoneIdDirective):
178178
then the assignment text should go here. The assignment text ends with
179179
the line containing four tilde ~
180180
~~~~
181+
print("Hidden code before students code - good for scaffolding")
182+
^^^^
181183
print("hello world")
182184
====
183185
print("Hidden code, such as unit tests come after the four = signs")
@@ -394,6 +396,9 @@ def run(self):
394396
self.options["wasmuri"] = ""
395397

396398
if self.content:
399+
if "^^^^" in self.content:
400+
idx = self.content.index("^^^^")
401+
prefix = "\n".join(self.content[:idx])
397402
if "====" in self.content:
398403
idx = self.content.index("====")
399404
source = "\n".join(self.content[:idx])

0 commit comments

Comments
 (0)