source-academy / modules

Modules that can be imported by programs in Source Academy, an online experiential environment for computational thinking
Apache License 2.0
8 stars 28 forks source link

REPL: Set program text #317

Closed martin-henz closed 2 months ago

martin-henz commented 2 months ago

Description

Adds a simple function set_program_text to set the program text in the REPL editor to the given string.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

I built the modules locally and served them to my local frontend. That allowed me to check that the feature works as expected.

Checklist: