plugin-icon

Code Block Pro – 美觀的語法強調顯示

作者 Kevin Batdorf·
使用 VS Code 引擎提供語法強調顯示,注重效能,沒有多餘的功能。
評價
4.8/5
版本
1.27.7
活躍安裝總數
10K
最近更新:
Jul 5, 2025
Code Block Pro – 美觀的語法強調顯示

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.

Beautiful syntax highlighting that makes sense.

To use, navigate to the default WordPress editor, and search for “Code Pro” or start typing “/code”.

Visit code-block-pro.com for a lifetime deal on the theme pack (this is a cosmetic-only upgrade).

Values

  • Performance first – Web vitals. Pre-rendering. Minimal asset loading.
  • Lightweight – No bloat. Simple functions. Clean, maintainable code.
  • Practical/useful – Focused on the user experience and presentation.
  • Beautiful – Your code should look great!

Star Code Block Pro on GitHub!

Features

  • Includes 25+ built-in themes to choose from.
  • 支援超過 140 種程式語言
  • 10+ Modern programming web fonts – locally hosted
  • 行號
  • Line highlighting (static and on hover)
  • Blur highlighting (with reveal on hover)
  • Header styles
  • Footer styles
  • Copy button
  • Native Gutenberg block
  • Tab or space indentation
  • Core functionality works in headless mode (see FAQ)
  • Converting from the default code block (and others)
  • Max height with scrollable section (optional expand button)

進一步了解

使用提示

  • Try combining line highlighting with the blur effect to add some extra depth, and focus on the important parts of the code without losing context
  • All settings are per block, but some settings are remembered when you add the next block
  • Add a link in the code footer (some footers support this, not all) that points to a demo
  • To achieve a flush look, remove padding under Extra Settings and select a theme with a background color matching your site theme

內建的 VS Code 外觀樣式

Get more themes at code-block-pro.com/themes

Theme Pack (Paid) Includes

  • Custom Dynamic Theme (advanced) read more
  • Andromeda (demo)
  • Ayu Dark (demo)
  • Ayu Mirage (demo)
  • Ayu Light (demo)
  • Cobalt2 (demo)
  • Night Owl (demo)
  • Night Owl Light (demo)
  • Noctis (demo)
  • Noctis Azureus (demo)
  • Noctis Bordo (demo)
  • Noctis Hibernus (demo)
  • Noctis Lilac (demo)
  • Noctis Lux (demo)
  • Noctis Minimus (demo)
  • Noctis Obscuro (demo)
  • Noctis Sereno (demo)
  • Noctis Uva (demo)
  • Noctis Viola (demo)
  • Palenight (demo)
  • Pico 8 (demo)
  • Shades of Purple (demo)
  • Shades of Purple Super Dark (demo)
  • Synthwave ’84 (demo)
  • Tokyo Night (demo)
  • Tokyo Night Storm (demo)
  • Tokyo Night Light (demo)
  • Winter is Coming (demo)
  • Winter is Coming Light (demo)
  • Winter is Coming Dark (demo)

內建的程式語言

免費使用Business方案
目前已測試版本
WordPress 6.8.3
此外掛程式已可供下載,並可用於你 系統。