Search by

thejoshsmith / craft-prism-syntax-highlighting

thejoshsmith

A Craft CMS plugin for syntax highlighting with PrismJS.

Package info

github.com/verbb/prism

Documentation

Type:craft-plugin

pkg:composer/thejoshsmith/craft-prism-syntax-highlighting

Fund package maintenance!

verbb

Statistics

Installs: 4 702

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

4.0.4 2026-09-30 09:43 UTC

This package is auto-updated.

Last update: 2026-10-01 03:39:54 UTC


README

Prism icon

Prism for Craft CMS

Prism is a Craft CMS plugin that gives Craft authors a code field that looks and behaves like code. Edit with live syntax highlighting, useful keyboard controls, and project-selected languages and themes, then render the stored source on the front end.

Choose from a broad language library and see syntax highlighting as the author types. Line numbers, indentation shortcuts, undo and redo, configurable tab width, and editor height make the field suitable for more than a one-line snippet.

Features

  • See language-aware syntax colour while editing the value.
  • Support a wide range of programming and markup syntaxes.
  • Choose a bundled presentation or provide one tailored to the site.
  • Give longer examples a familiar code-editor reference.
  • Indent and undo without fighting a plain textarea.

Documentation

Visit the Prism Plugin page for all documentation, guides, pricing and developer resources.

Credit & Thanks

Originally created by Josh Smith me@joshsmith.dev.

Support

Get in touch with us via the Prism Support page or by creating a Github issue

Sponsor

Prism is licensed under the MIT license, meaning it will always be free and open source - we love free stuff! If you'd like to show your support to the plugin regardless, Sponsor development.

Verbb