跳到内容

TinyMCE Code Formatting

v1.0.0

mortalis · 2015年4月7日 上架

Adds the Pre and Code buttons to the TinyMCE toolbar with customizable shortcuts

正在使用
70+
评分
5.0 / 5
累计下载
4,755
最近更新
2015年4月15日
3 条评价需要 WordPress 4.1+已测试到 4.1.42

贡献者

截图

The buttons in the default TinyMCE editor.
The buttons in the default TinyMCE editor.
The buttons with the TinyMCE Advanced plugin activated.
The buttons with the TinyMCE Advanced plugin activated.
Plugin options page allows to select custom shortcuts.
Plugin options page allows to select custom shortcuts.

The Pre button toggles the preformatted style on the selected text or the current line (applies <pre> tag to blocks).
The Code button toggles the code style on the selected text or the current word (applies <code> tag to inline elements).

The default shortcuts for the buttons are:

  • Ctrl+Q – Pre
  • Ctrl+D – Code

In the admin Settings submenu it’s possible to change these shortcuts.
Press a key combination in the text fields with the Ctrl key included and the text will be filled automatically. Or you can type it manually.

Some combinations may conflict with the default editor or browser shortcuts.
So check them on your instance.

You may use these types of shortcuts:

  • Ctrl+B, .., Z (except AXCV)
  • Ctrl+0, .., 9
  • Ctrl+[symbols] (-=`[];'\/,.)
  • Ctrl+F1, .., F12
  • Ctrl+Pad0, .., Pad9
  • Ctrl+Pad/, Pad*, Pad+, Pad.
  • Ctrl+Shift+...
  • Ctrl+Alt+...
  • Ctrl+Shift+Alt+...

This plugin GitHub repository: https://github.com/mortalis13/tinymce-code-formatting.

Plums

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

导航

说明

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

© 2026 Plums