WP Manifestindependent plugin directory
manifest / editor / code-format

Code Format

Better code format for the WordPress block editor.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gonzomir/code-format/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Add code format button to the rich text area toolbar in the block editor.

Description

Although the new block editor has built-in code format for marking up inline code, it lacks dedicated button on the rich editor toolbar, and the shortcuts is hard to use in some environments. This plugin adds the code button to the toolbar and changes the shortcut to Ctrl+D (Cmd+D on Mac).

Installation

Clone this repo or download it as ZIP file and upload it to the plugins directory of your WordPress installation.