Title: FrameBlocks
Author: Eduardo Sanchez Hidalgo
Published: <strong>2026 年 5 月 11 日</strong>
Last modified: 2026 年 5 月 11 日

---

搜索插件

![](https://ps.w.org/frame-blocks/assets/banner-772x250.png?rev=3529157)

![](https://ps.w.org/frame-blocks/assets/icon-256x256.png?rev=3529157)

# FrameBlocks

 作者：[Eduardo Sanchez Hidalgo](https://profiles.wordpress.org/laloptk/)

[下载](https://downloads.wordpress.org/plugin/frame-blocks.0.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/frame-blocks/)

## 描述

FrameBlocks gives content creators and developers a set of Gutenberg blocks that
wrap content inside realistic UI mockups — without leaving the WordPress editor.

**Included blocks:**

 * **Browser Frame** — Safari or Chrome browser shell wrapping any inner content
 * **Code Editor Frame** — VS Code editor shell with sidebar, code zone, and terminal
 * **Code Syntax Highlighter** — Syntax-highlighted code powered by Shiki (50+ languages)
 * **Device Frame** — Phone, tablet, or laptop device shell
 * **File Tree** — VS Code-style file/folder tree
 * **File Tree Item** — Individual file or folder row inside a file tree
 * **Social Post** — Instagram or Facebook post mockup
 * **Social Comment** — Comment row nested inside a social post

All blocks are fully responsive using CSS container queries (`cqw` units), so they
scale automatically with the column width — no manual resizing needed.

## 屏幕截图

 * [[
 * Device Frame block — laptop, tablet, and phone variants with nested content.
 * [[
 * Code Editor Frame with File Tree sidebar and Syntax Highlighter, including a 
   terminal panel.
 * [[
 * Social Post blocks — Instagram and Facebook mockups with editable content.

## 区块

该插件提供了 8 个区块.

 *   Browser Frame Display content inside a browser window frame. Choose between
   Safari and Chrome styles.
 *   Code Syntax Highlighter Renders syntax-highlighted code with Shiki tokenization.
   Tokens are pre-computed in the editor and served as static HTML on the frontend.
 *   Social Comment Display a single social media comment for Instagram or Facebook.
 *   Code Editor Frame A pixel-perfect VS Code editor shell (Dark+ theme) with a
   fluid-scaling CSS-grid layout. Wraps a file-tree list (right sidebar), a code
   syntax-highlighter (main editor), and a terminal strip. Tree icons rely on text/
   emoji in list items; no split-pane resize; terminal height is content-driven.
 *   File Tree A VS Code-style file explorer tree. Add File Tree Item child blocks
   to build a folder/file structure up to four levels deep.
 *   Device Frame Display content inside a scalable device frame (laptop, tablet,
   phone).
 *   Social Post Display a styled social post mockup for Instagram or Facebook.
 *   File Tree Item A single file or folder row inside a File Tree block.

## 安装

 1. In your WordPress admin go to **Plugins  Add New  Upload Plugin**.
 2. Upload the `frame-blocks.zip` file and click **Install Now**.
 3. Activate the plugin.
 4. Open any post or page in the Gutenberg editor and search for “Frame” in the block
    inserter.

## 常见问题

### Does this plugin work with the classic editor?

No. FrameBlocks is built exclusively for the Gutenberg block editor (WordPress 6.8
+).

### Are the frames responsive?

Yes. All frames use CSS container queries and scale fluidly with the column they
are placed in.

### Does the plugin load external resources?

No. All assets — including icon fonts — are bundled locally with the plugin. No 
external requests are made.

### Which syntax languages does the code highlighter support?

The Code Syntax Highlighter block uses [Shiki](https://shiki.style/) and supports
over 50 languages including JavaScript, TypeScript, PHP, Python, HTML, CSS, Bash,
and more.

## 评价

此插件暂无评价。

## 贡献者及开发者

「FrameBlocks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Eduardo Sanchez Hidalgo ](https://profiles.wordpress.org/laloptk/)

[帮助将「FrameBlocks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/frame-blocks)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1.0

 * Initial release with 8 blocks: Browser Frame, Code Editor Frame, Code Syntax 
   Highlighter, Device Frame, File Tree, File Tree Item, Social Post, Social Comment.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/frame-blocks/)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[frames](https://cn.wordpress.org/plugins/tags/frames/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[mockup](https://cn.wordpress.org/plugins/tags/mockup/)
   [syntax highlighter](https://cn.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [高级视图](https://cn.wordpress.org/plugins/frame-blocks/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/frame-blocks/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/frame-blocks/reviews/)

## 贡献者

 *   [ Eduardo Sanchez Hidalgo ](https://profiles.wordpress.org/laloptk/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/frame-blocks/)