跳到内容

Melonpan Block – Code

v2.0.3

Alvaro · 2019年8月2日 上架

Block to display code, with highlighted syntax, which can be copied to the clipboard.

正在使用
10+
评分
暂无
累计下载
2,535
最近更新
2021年3月3日
需要 WordPress 5.5+已测试到 5.6.24PHP 7.1+

贡献者

截图

Block settings panel.
Block settings panel.

Demo – Documentation – GitHub

Block to display code, with highlighted syntax, which can be copied to the clipboard.

Features

The block comes with the following settings:

  • Code language: JavaScript, CSS, PHP, etc. Full list of languages.
  • Color theme
  • Label: Top left label that can be customized. By default the code language.
  • Copy button: Top right button to copy the block content.
  • Padding
  • Border width and Border radius

Usage

The block can be found inside the blocks inserter menu under the Melonpan Blocks category.
Once added in the post you can edit its settings on the Editor sidebar under the Block settings panel.
Switch between the previewer and editor views to edit the code and see its styled output.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums