Skip to content

A WP plugin that extends gutenberg core/code block to use Prism.js to highlight syntax

Notifications You must be signed in to change notification settings

JimSchofield/gutenberg-prism-code-formatter

Repository files navigation

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.

About

A WP plugin that extends gutenberg core/code block to use Prism.js to highlight syntax

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published