Title: Code Block – Embed Code with One-Click Copy Feature
Author: bPlugins
Published: <strong>2025 年 4 月 22 日</strong>
Last modified: 2026 年 5 月 23 日

---

搜尋外掛

![](https://ps.w.org/code-snippets-block/assets/banner-772x250.png?rev=3386535)

![](https://ps.w.org/code-snippets-block/assets/icon-128x128.png?rev=3279102)

# Code Block – Embed Code with One-Click Copy Feature

 由 [bPlugins](https://profiles.wordpress.org/bplugins/) 開發

[下載](https://downloads.wordpress.org/plugin/code-snippets-block.1.0.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/code-snippets-block/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/code-snippets-block/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/code-snippets-block/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/code-snippets-block/#developers)

 [技術支援](https://wordpress.org/support/plugin/code-snippets-block/)

## 外掛說明

[Code Snippets Block](https://bplugins.com/products/code-snippets-block/) is a lightweight
Gutenberg plugin that lets you display programming code in WordPress with syntax
highlighting, copy-to-clipboard functionality, and customizable themes.

[Code Snippets Block](https://bplugins.com/products/code-snippets-block/) | [Pricing](https://bplugins.com/products/code-snippets-block/pricing/)
| [Support](https://bplugins.com/support/) | [Live Demos](https://bblockswp.com/demo/code-snippets-block-all-demo/)

It helps developers, bloggers, and educators present code snippets in a clean and
readable format. Visitors can quickly copy code with a single click, making it perfect
for coding tutorials, documentation, and developer blogs.

The block supports multiple programming languages and modern color themes to improve
readability. It is fully responsive and works smoothly inside the WordPress block
editor.

Whether you are publishing development tutorials, technical documentation, or sharing
reusable code snippets, this plugin makes code presentation simple and professional.

### Key Features – Free Version

 * **One-Click Copy Button**: Allow visitors to copy code instantly using a convenient
   copy-to-clipboard button.
 * **Syntax Highlighting for Multiple Languages**: Display programming code with
   proper syntax highlighting for better readability.
 * **Seven Modern Color Themes**: Choose from multiple built-in themes to customize
   the appearance of your code snippets.
 * **Clean Code Presentation**: Show code in a structured and readable layout that
   improves user experience.
 * **Gutenberg Block Integration**: Easily insert code snippets using a dedicated
   Gutenberg block.
 * **Shortcode Support**: Embed code snippets anywhere on your site using shortcodes.
 * **Responsive Design**: Code snippets automatically adapt to all screen sizes 
   and devices.

### Code Snippets Block Pro – Unlock More Customization

Upgrade to the [Pro version](https://bplugins.com/products/code-snippets-block/pricing/)
for additional layout and styling controls.

### What’s Included in the Pro Version?

 * **Custom Copy Button Position**: Place the copy button exactly where you want
   within the code block.
 * **Premium Header Layouts**: Use advanced header layouts to enhance the code snippet
   design.
 * **Exclusive Premium Themes**: Access additional professionally designed color
   themes.
 * **Header Padding & Background Control**: Adjust spacing and background styles
   for the code block header.
 * **Custom Code Block Background**: Apply custom background styles for better visual
   presentation.
 * **Formatted Output Section**: Display formatted output along with the code snippet.

Try the [Code Snippets Block](https://bplugins.com/products/code-snippets-block/pricing/)–
Unlock all premium features now!

### How to Use Code Snippets Block – Step-by-Step Guide

Getting started with the Code Snippets Block is quick and easy!

### Step-by-Step Instructions

 1. Install and activate the Code Snippets Block plugin.
 2. Open the Gutenberg editor in WordPress.
 3. Add the Code Snippets Block from the block inserter.
 4. Paste your code into the block.
 5. Select the programming language and theme from the block settings.

Your code snippet will now appear with syntax highlighting and a copy button.

 * For installation help click on Installation Tab.

[Live Demos](https://bblockswp.com/demo/code-snippets-block-all-demo/) | [Get Code Snippets Block PRO](https://bplugins.com/products/code-snippets-block/pricing/)

### Why Choose Code Snippets Block?

 * **Instant copy-to-clipboard** — visitors copy your code in one click
 * **Syntax highlighting for all major languages** — PHP, JavaScript, Python, HTML,
   CSS, and more
 * **7 built-in color themes** — match your site’s look and feel
 * **Gutenberg-native** — inserts just like any other block
 * **Shortcode support** — embed code snippets anywhere on your site
 * **Fully responsive** — looks great on desktop, tablet, and mobile
 * **Lightweight** — minimal impact on page load speed
 * **Works with any WordPress theme** — zero compatibility issues

### Common Use Cases

The plugin is useful for many types of WordPress websites:

✔ **Programming Tutorials:** Make your snippets easy to read and copy.
 ✔ **Developer
Documentation:** Keep code examples clean and consistent. ✔ **Developer Portfolios:**
Showcase your clean code with pride. ✔ Technical knowledge bases. ✔ Educational 
coding resources.

#### Feedback

 * Liked that plugin? Hate it? Want a new feature? [Send me some feedback](https://tw.wordpress.org/plugins/code-snippets-block/support@bplugins.com?output_format=md)

#### ⭐ Check out the Parent Plugin of this plugin-

🔥 **[b Blocks](https://bblockswp.com/)** – Best gutenberg blocks collections for
WordPress.

#### ⭐ Check out our other WordPress Plugins-

🔥 **[Html5 Audio Player](https://audioplayerwp.com/)** – Best audio player plugin
for WordPress.

🔥 **[Html5 Video Player](https://wpvideoplayer.com/)** – Best video player plugin
for WordPress.

🔥 **[PDF Poster](http://pdfposter.com/)** – A fully-featured PDF Viewer Plugin 
for WordPress.

🔥 **[StreamCast](https://wordpress.org/plugins/streamcast)** – A fully-featured
Radio Player Plugin for WordPress.

🔥 **[3D Viewer](https://3d-viewer.bplugins.com/)** – Display interactive 3D models
on the webs.

## 螢幕擷圖

 * [[
 * Code Snippets Admin Dashboard
 * [[
 * Add New FAQ (ShortCode)
 * [[
 * Default Theme
 * [[
 * Dark Theme
 * [[
 * Tomorrow Theme
 * [[
 * Solarized Light Theme
 * [[
 * Twilight Theme
 * [[
 * Porple Theme
 * [[
 * White Theme
 * [[
 * Github Theme
 * [[
 * Gradient-Light Theme
 * [[
 * VSCode-Dark Theme
 * [[
 * Codepan Embeb Theme
 * [[
 * Far Theme
 * [[
 * Gutenberg Block Support
 * [[
 * Gutenberg Block Settings

## 適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

 *   Code The Code Snippets block plugin lets you easily copy, style, and view beautifully
   highlighted code.

## 安裝方式

#### From Gutenberg Editor:

 1. Go to the WordPress Block/Gutenberg Editor
 2. Search For **Code Snippets**
 3. Click on the **Code Snippets** to add the block

#### Download & Upload:

 1. Download the **Code Snippets Block** plugin (_.zip file_)
 2. In your admin area, go to the Plugins menu and click on **Add New**
 3. Click on **Upload Plugin** and choose the **`code-snippets-block.zip`** file and
    click on **Install Now**
 4. Activate the plugin and Enjoy!

#### Manually:

 1. Download and upload the **Code Snippets Block** plugin to the **`/wp-content/plugins/`**
    directory
 2. Activate the plugin through the Plugins menu in WordPress

## 常見問題集

### Is Code Snippets Block free?

Yes, Code Snippets Block is a free Gutenberg block plugin.

### Does it work with any WordPress theme?

Yes, it will work with any standard WordPress theme.

### Can I change block settings?

Yes, you can change block settings from the Gutenberg block editor’s right sidebar.

### How many times can I reuse a block?

You can use unlimited times as you want.

### Where can I get support?

You can post your questions on the [support forum here](https://wordpress.org/plugins/code-snippets-block/)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Code Block – Embed Code with One-Click Copy Feature〉的開發
相關工作。

參與者

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ Abu Hayat ](https://profiles.wordpress.org/abuhayat/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)
 *   [ Prosanta Roy ](https://profiles.wordpress.org/prosanta10/)

[將〈Code Block – Embed Code with One-Click Copy Feature〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/code-snippets-block)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/code-snippets-block/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/code-snippets-block/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/code-snippets-block/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/code-snippets-block/)。

## 變更記錄

#### 1.0.3 – 14 Oct, 2025

 * remove extra double “

#### 1.0.2 – 27 April, 2025

 * border issues fixed;
 * Plugin title change, block title change and some assets updated;

#### 1.0.1 – 22 April, 2025

 * Some issues fixed;
 * assets added;

#### 1.0.0

 * Initial Release

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **1 週前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 6.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/code-snippets-block/)
 * 標籤:
 * [block](https://tw.wordpress.org/plugins/tags/block/)[code block](https://tw.wordpress.org/plugins/tags/code-block/)
   [copy to clipboard](https://tw.wordpress.org/plugins/tags/copy-to-clipboard/)
   [Gutenberg block](https://tw.wordpress.org/plugins/tags/gutenberg-block/)[syntax highlight](https://tw.wordpress.org/plugins/tags/syntax-highlight/)
 *  [進階檢視](https://tw.wordpress.org/plugins/code-snippets-block/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/code-snippets-block/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/code-snippets-block/reviews/)

## 參與者

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ Abu Hayat ](https://profiles.wordpress.org/abuhayat/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)
 *   [ Prosanta Roy ](https://profiles.wordpress.org/prosanta10/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/code-snippets-block/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.buymeacoffee.com/abuhayat)