Replies: 3 comments
-
By "custom block", do you mean a block in a custom extension? Because you can't execute JavaScript normally using vanilla blocks. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yea I mean a custom extension.
…On Thu., Aug. 19, 2021, 6:18 a.m. CST1229, ***@***.***> wrote:
By "custom block", do you mean a block in a custom extension? Because you
can't execute JavaScript normally using vanilla blocks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#301 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOOGUIOTUUB7J4W5W6MMHPDT5TLALANCNFSM5CM4X23Q>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Custom extensions currently cannot create multi-line blocks. Even Scratch itself can't do that right now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all! Sorry if this question isn't in the appropriate place. I've been using TurboWarp's Scratch so that I can make a custom block that will execute javascript when clicked. My question is whether we can enable a block to span multiple lines instead of just one. For example, Snap! has a Javascript function block that allows you to write a function that spans multiple lines.
Link for snap editor: https://snap.berkeley.edu/snap/snap.html (for js function, click operators, then the gear icon at the top and then the "Javascript extensions" checkbox.
Link for snap source code: https://github.com/jmoenig/Snap
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions