Title: Iyo Block Code Renderer for Scratch
Author: kazweda
Published: <strong>2026 年 9 月 16 日</strong>
Last modified: 2026 年 9 月 16 日

---

搜索插件

![](https://ps.w.org/iyo-block-code-renderer-scratch/assets/icon.svg?rev=3700147)

# Iyo Block Code Renderer for Scratch

 作者：[kazweda](https://profiles.wordpress.org/npmyj/)

[下载](https://downloads.wordpress.org/plugin/iyo-block-code-renderer-scratch.1.1.7.zip)

 * [详情](https://cn.wordpress.org/plugins/iyo-block-code-renderer-scratch/#description)
 * [评价](https://cn.wordpress.org/plugins/iyo-block-code-renderer-scratch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/iyo-block-code-renderer-scratch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/iyo-block-code-renderer-scratch/#developers)

 [支持](https://wordpress.org/support/plugin/iyo-block-code-renderer-scratch/)

## 描述

Iyo Block Code Renderer for Scratch lets you write Scratch-style pseudocode in your
WordPress content and renders it as images of Scratch blocks, using the [scratchblocks](https://github.com/scratchblocks/scratchblocks)
library.

This is useful for tutorials, coding classes (such as CoderDojo), and documentation
that references Scratch code.

#### Bundled library

This plugin bundles the scratchblocks JavaScript library (MIT License, Copyright
2013–2026 Tim Radvan). See `assets/js/scratchblocks/LICENSE` for the full license
text.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/iyo-block-code-renderer-scratch`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Add a `scratchblocks` class element to your content and write Scratch pseudocode
    inside it:
 4. when green flag clicked
     say [Hello!]

Note: Manually escape `<` and `>` characters (e.g. `&lt;` and `&gt;`) inside the
block.

## 常见问题

### Which languages are supported for block labels?

Currently English (`en`) and Japanese (`ja`) are enabled.

### Where does the rendering happen?

Rendering happens entirely in the visitor’s browser via JavaScript; no server-side
processing or external requests are made.

### Where can I report bugs or request features?

Please use the [GitHub issue tracker](https://github.com/kazweda/iyo-block-code-renderer-scratch/issues)
for bug reports and feature requests.

### I installed this plugin manually from GitHub before it was renamed. Will it auto-update?

The plugin (and its slug) was renamed from `iyo-scratch-blocks` (“Iyo Scratch Blocks”)
to `iyo-block-code-renderer-scratch` (“Iyo Block Code Renderer for Scratch”). WordPress
core’s automatic-update mechanism matches plugins by slug, so a copy installed manually
under the old slug will **not** be picked up as an update to this listing. If you
installed the old version manually, deactivate and delete it, then install “Iyo 
Block Code Renderer for Scratch” fresh from the WordPress.org directory (or via 
the “Add Plugins” screen) to get automatic updates going forward.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Iyo Block Code Renderer for Scratch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ kazweda ](https://profiles.wordpress.org/npmyj/)

「Iyo Block Code Renderer for Scratch」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/iyo-block-code-renderer-scratch/contributors)
为本插件所做的贡献。

[帮助将「Iyo Block Code Renderer for Scratch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/iyo-block-code-renderer-scratch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/iyo-block-code-renderer-scratch/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/iyo-block-code-renderer-scratch/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/iyo-block-code-renderer-scratch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/iyo-block-code-renderer-scratch/)。

## 更新日志

#### 1.1.7

 * Add `Text Domain` and `Domain Path` headers and a `languages/` directory with
   a generated `.pot` file, enabling translation of the plugin listing via translate.
   wordpress.org.
 * Add a FAQ entry about migrating from the pre-rename GitHub install to get automatic
   updates.

#### 1.1.6

 * Rename the plugin to “Iyo Block Code Renderer for Scratch” (and slug to iyo-block-
   code-renderer-scratch) to avoid implying affiliation with the Scratch trademark.
 * Correct the Contributors field to the current WordPress.org username (npmyj).

#### 1.1.5

 * Explicitly load scratchblocks scripts in the footer ($in_footer = true), fixing
   Plugin Check’s WordPress.WP.EnqueuedResourceParameters.NotInFooter warnings.
 * Render the block-matching call via `wp_add_inline_script()` instead of a manual
   footer `<script>` tag.

#### 1.1.4

 * Add direct file access protection to the main plugin file, per Plugin Check’s
   missing_direct_file_access_protection notice.

#### 1.1.3

 * Update “Tested up to” to WordPress 7.1, per Plugin Check’s outdated_tested_upto_header
   notice.

#### 1.1.2

 * Update Author URI to the canonical non-www URL.
 * Add a support/bug report link (GitHub issue tracker) to the FAQ.

#### 1.1.1

 * Align plugin header license declaration with GPLv2 or later and add License URI.

#### 1.1.0

 * Bundle the scratchblocks library (v3.7.1) with the plugin and load it from the
   plugin directory instead of an external CDN.
 * Add readme.txt for WordPress.org plugin directory submission.

#### 1.0.4

 * Update scratchblocks to v3.7.1 (previously loaded from CDN).

#### 1.0.3

 * Maintenance update.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.1.7**
 *  最后更新：**4 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/iyo-block-code-renderer-scratch/)
   和 [Hungarian](https://hu.wordpress.org/plugins/iyo-block-code-renderer-scratch/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/iyo-block-code-renderer-scratch)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[code](https://cn.wordpress.org/plugins/tags/code/)
   [education](https://cn.wordpress.org/plugins/tags/education/)[scratch](https://cn.wordpress.org/plugins/tags/scratch/)
 *  [高级视图](https://cn.wordpress.org/plugins/iyo-block-code-renderer-scratch/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/iyo-block-code-renderer-scratch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/iyo-block-code-renderer-scratch/reviews/)

## 贡献者

 *   [ kazweda ](https://profiles.wordpress.org/npmyj/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/iyo-block-code-renderer-scratch/)