Linux 软件免费装
Banner图

Code Block Pro - 漂亮的语法高亮

开发者 kbat82
dcooney
a169kai
更新时间 2025年7月5日 22:10
WordPress版本: 6.8
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

php block code highlighter syntax

下载

1.1.0 1.26.1 1.9.2 1.3.0 1.27.7 1.19.0 1.20.0 1.5.0 1.5.2 1.5.1 1.2.0 1.2.1 1.2.4 1.2.3 1.8.0 1.2.8 1.16.0 1.7.0 1.12.0 1.21.0 1.11.0 1.22.0 1.9.1 1.11.2 1.16.1 1.23.0 1.18.0 1.22.1 1.24.0 1.11.3 1.17.0 1.25.0 1.2.5 1.24.1 1.26.0 1.26.2 1.26.4 1.26.5 1.2.2 1.27.3 1.6.0 1.10.0 1.26.3 1.26.6 1.26.7 1.26.8 1.27.0 1.27.1 1.4.0 1.13.0 1.2.6 1.27.2 1.9.0 1.11.1 1.14.0 1.15.0 1.2.7 1.27.4 1.27.5 1.27.6 1.9.3

详情介绍:

Show off your beautiful code, don't just display it! This block plugin provides you with a code editor that runs your code directly through the same rendering engine that is used by the popular VS Code editor. This block provides fast, native, code highlighting that renders perfectly in your favorite programming language using popular VS Code themes. 漂亮的语法高亮很有意义。 导航到 WP 默认编辑器,搜索 Code Pro 或者输入/code 开始使用。 Visit code-block-pro.com for a lifetime deal on the theme pack (this is a cosmetic-only upgrade). Values 特性 More info Tips 包含了 VS Code 主题 Theme Pack (Paid) Includes Included Coding Languages

安装:

  1. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • Customize fonts, themes, and behavior.
  • Disable padding and inline the code for a fluent experience.
  • Use highlighting and blur to focus on parts of the code.
  • ANSI support for rendering control sequences

常见问题:

Font size is too small/big

Look under the "Styling" tab and turn on "Clamp Values", which will compute the rem values relative to a 16px-24px base * the selected rem values. e.g. clamp(20px, 1.25rem, 30px).

怎么 headless 使用

Themes are rendered inside the editor as you type or make changes, so the code block itself will work without CSS or JavaScript. However, the font loading, copy button, and line highlighting require a tiny bit of JavaScript to function. Additionally, line blur uses a tiny bit of CSS which you will need to load in yourself or implement your own. The code tokens and theme styles are inline though, so no need to manipulate the DOM.

更新日志:

1.27.7 - 2025-07-05 1.27.6 - 2025-06-29 1.27.5 - 2025-06-21 1.27.4 - 2025-06-20 1.27.3 - 2025-05-15 1.27.2 - 2025-05-15 1.27.1 - 2025-05-15 1.27.0 - 2025-05-11 1.26.8 - 2025-03-24 1.26.7 - 2025-03-23 1.26.6 - 2024-09-30 1.26.5 - 2024-09-30 1.26.4 - 2024-06-18 1.26.3 - 2024-06-14 1.26.2 - 2024-04-04 1.26.1 - 2024-01-31 1.26.0 - 2024-01-17 1.25.0 - 2023-11-13 1.24.1 - 2023-10-11 1.24.0 - 2023-09-02 1.23.0 - 2023-08-13 1.22.1 - 2023-07-30 1.22.0 - 2023-07-22 1.21.0 - 2023-07-09 1.20.0 - 2023-06-25 1.19.0 - 2023-06-18 1.18.0 - 2023-05-29 1.17.0 - 2023-05-06 1.16.1 - 2023-05-01 1.16.0 - 2023-04-30 1.15.0 - 2023-04-08 1.14.0 - 2023-03-26 1.13.0 - 2023-02-05 1.12.0 - 2023-01-28 1.11.3 - 2023-01-08 1.11.2 - 2023-01-04 1.11.1 - 2023-01-04 1.11.0 - 2023-01-03 1.10.0 - 2022-12-21 1.9.3 - 2022-12-05 1.9.2 - 2022-11-22 1.9.1 - 2022-11-21 1.9.0 - 2022-11-20 1.8.0 - 2022-11-17 1.7.0 - 2022-11-09 1.6.0 - 2022-09-09 1.5.2 - 2022-09-08 1.5.1 - 2022-09-05 1.5.0 - 2022-09-05 1.4.0 - 2022-09-04 1.3.0 - 2022-09-04 1.2.8 - 2022-08-31 1.2.7 - 2022-08-31 1.2.6 - 2022-08-30 1.2.5 - 2022-08-30 1.2.4 - 2022-08-30 1.2.3 - 2022-08-29 1.2.2 - 2022-08-28 1.2.1 - 2022-08-27 1.2.0 - 2022-08-27 1.1.0 - 2022-08-22 1.0.0 - 2022-08-20