Code Filter for Prism.js
A WP plugin that extends gutenberg core/code block to use Prism.js to highlight syntax
by Jim Schofield · github.com/jimschofield/gutenberg-prism-code-formatter
★ 4stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jimschofield/gutenberg-prism-code-formatter/archive/refs/heads/master.zipPrism.js Code Block Plugin
A core/code plugin that extends the core block and highlights syntax with Prism.js
To use
- Clone or download to
public/wp-content/plugins/directory - Activate in WordPress admin in the plugins page
- Use the regular code block in the editor
To develop against
- After cloning the repo
npm install - Run
npm run buildfor a simple build - Run
npm run watchto set a watcher
TODO
- [ ] Create a deprecated strategy so this will not change the content should this be turned off.