Right now, if we want to have a world use Python as a programming language, but allow input from blockly or the repl as well as the editor, we have to write the following in the onload editor:
// Since Python code is included in the
// pre and post editors, we need to ensure
// that Python is set as the programming language.
if (!(RUR.state.input_method == "py-repl" ||
RUR.state.input_method == "python" ||
RUR.state.input_method == "blockly-py")) {
RUR.onload_set_programming_mode("python");
}
Right now, if we want to have a world use Python as a programming language, but allow input from blockly or the repl as well as the editor, we have to write the following in the onload editor:
This should be replaced by a single call:
with a similar choice for
"javascript"
.