X Tutup
Skip to content

New Addon: Text2Blocks#8860

Draft
LuYifei2011 wants to merge 12 commits intoScratchAddons:masterfrom
LuYifei2011:text2blocks
Draft

New Addon: Text2Blocks#8860
LuYifei2011 wants to merge 12 commits intoScratchAddons:masterfrom
LuYifei2011:text2blocks

Conversation

@LuYifei2011
Copy link

@LuYifei2011 LuYifei2011 commented Mar 1, 2026

Resolves #8573

Changes

compressO-.2026-03-01.150815.mp4

Reason for changes

Allow users to paste code from forums or other sources and convert it into blocks.

Tests

Only a portion of the blocks were tested on Chrome 145.

Future work

  • Complete custom block support
  • Make error messages more human-friendly
  • Inspect and improve dropdown menu behavior and validators, especially dynamic ones
  • Test more blocks

The following may or may not be implemented:

  • Support comments
  • Lenient syntax for math and logic operations
  • Display which extensions will be added
  • Events, costumes, and sounds tabs that can create new ones (for events) or select existing ones, similar to the variables/lists tab
  • Support Scratch 2, TurboWarp (e.g., is TurboWarp?), SA debugger, and hidden blocks/values (dropdowns and inputs)

LuYifei2011 and others added 7 commits March 1, 2026 14:02
- Fix nested script handling issue
- Supplementary English translation
- Change code comments to English
- If it exists, the existing one will be selected by default.
- Check for duplicate names before creating
@BlockerNagnto
Copy link

what if make this also support copy block as text?

that'll make us easier to copy code from project to project

@Samq64
Copy link
Member

Samq64 commented Mar 3, 2026

what if make this also support copy block as text?

There are already 3 open pull requests that implement that in different ways. The main tracking issue is #2336.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Addon: Convert scratchblocks Text to Blocks

3 participants

X Tutup