TinyMCE Code Formatting
Adds the Pre and Code buttons to the TinyMCE toolbar with customizable shortcuts
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 3914 days ago • 3 reviews
Is TinyMCE Code Formatting abandoned?
Possibly abandoned (last update 3914 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
The Pre button toggles the preformatted style on the selected text or the current line (applies tag to blocks).
The Code button toggles the code style on the selected text or the current word (applies 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, .., 9Ctrl+[symbols] (-=`[];'\/,.)Ctrl+F1, .., F12Ctrl+Pad0, .., Pad9Ctrl+Pad/, Pad*, Pad+, Pad.Ctrl+Shift+...Ctrl+Alt+...Ctrl+Shift+Alt+...
This plugin GitHub repository: https://github.com/mortalis13/tinymce-code-formatting.
Installation
- Upload
tinymce-pre-buttonfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress


