內容簡介
Youbou Code Block 是一款專為 WordPress 的 Gutenberg 區塊編輯器設計的外掛,讓使用者能輕鬆地在文章和頁面中添加語法高亮的程式碼片段,並支援多種程式語言,還具備方便的複製到剪貼簿功能。
【主要功能】
• 支援多種程式語言的語法高亮
• 方便的複製到剪貼簿功能
• 簡易的 Gutenberg 區塊介面
外掛標籤
開發者團隊
原文外掛簡介
The Youbou Code Block is a Gutenberg block plugin for WordPress that allows users to easily add syntax-highlighted code snippets to their posts and pages. This plugin supports a wide range of programming languages and includes a convenient copy-to-clipboard functionality.
Features
Syntax highlighting for various programming languages
Supports the following languages:
HTML
CSS
SCSS
JavaScript
TypeScript
PHP
Ruby
Python
Swift
C
C#
C++
Objective-C
SQL
JSON
Bash
Git
Copy-to-clipboard functionality for code snippets
Easy to use Gutenberg block interface
Development
Use the Node version in .nvmrc, then run npm ci, composer install, npm test, and npm run build.
Run npm run test:browser after installing Chromium with npx playwright install chromium.
Run the configured lint commands and Plugin Check before publishing. npm run release builds a production ZIP with its Composer autoloader in release/; it does not deploy the plugin.
Regenerate messages with npm run i18n:pot. When translated PO files are available, use npm run i18n:json to produce catalogs mapped to the shipped bundles. No translations are fabricated by these commands.
License
This plugin is licensed under the GPLv2 or later. For more information, see http://www.gnu.org/licenses/gpl-2.0.html.
