Skip to content
A WP plugin that extends gutenberg core/code block to use Prism.js to highlight syntax
JavaScript PHP CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Change code block to default to standard block align Aug 26, 2019
src Change code block to default to standard block align Aug 26, 2019
vendor Converting prismjs to vendor files downloaded from prismjs.com Aug 10, 2019
.babelrc Initial commit Aug 10, 2019
.gitignore Initial commit Aug 10, 2019
README.md Update README.md Aug 12, 2019
index.php Initial commit Aug 10, 2019
package-lock.json Converting prismjs to vendor files downloaded from prismjs.com Aug 10, 2019
package.json Converting prismjs to vendor files downloaded from prismjs.com Aug 10, 2019
prism-code-filter.php
webpack.config.js Initial commit Aug 10, 2019

README.md

Prism.js Code Block Plugin

A core/code plugin that extends the core block and highlights syntax with Prism.js

To use

  1. Clone or download to public/wp-content/plugins/ directory
  2. Activate in WordPress admin in the plugins page
  3. Use the regular code block in the editor

To develop against

  1. After cloning the repo npm install
  2. Run npm run build for a simple build
  3. Run npm run watch to set a watcher

TODO

  • Create a deprecated strategy so this will not change the content should this be turned off.
You can’t perform that action at this time.