Linux 软件免费装

Youbou Code Block

开发者 youssefbouhlal
更新时间 2026年10月11日 23:29
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

syntax highlighting Gutenberg block code highlighting copy to clipboard programming languages

下载

1.0 1.0.1

详情介绍:

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.

安装:

  1. Upload the complete release ZIP through the WordPress plugins screen, or extract it into /wp-content/plugins/youbou-code-block.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Navigate to the Gutenberg editor and add the 'Youbou Code Block' to your post or page.
  4. Select the programming language and add your code.

升级注意事项:

1.0.1 Includes a Prism security fix and code-preservation improvements. Previously altered code cannot be reconstructed automatically; review it against your original source if needed. 1.0
  • Initial release of the plugin. No upgrades are required.

常见问题:

What programming languages are supported?

The plugin supports the following languages:

  • HTML
  • CSS
  • SCSS
  • JavaScript
  • TypeScript
  • PHP
  • Ruby
  • Python
  • Swift
  • C
  • C#
  • C++
  • Objective-C
  • SQL
  • JSON
  • Bash
  • Git

How do I use the copy-to-clipboard functionality?

Use the 'Copy code' button above the code block. It is available with a keyboard or touch. If clipboard access fails, select the code and press Ctrl+C or Command+C.

Will updating repair code previously changed by HTML entity decoding?

Version 1.0.1 preserves literal entities in newly saved code. It preserves the text parsed from existing blocks, but cannot infer the original spelling of code already changed by earlier versions. Restore that text from a revision or your original source if necessary.

更新日志:

1.0.1 1.0