thejoshsmith / craft-prism-syntax-highlighting
A Craft CMS plugin for syntax highlighting with PrismJS.
Package info
Type:craft-plugin
pkg:composer/thejoshsmith/craft-prism-syntax-highlighting
Fund package maintenance!
Requires
- php: ^8.2
- craftcms/cms: ^5.0.0
- verbb/base: ^3.0.18
Requires (Dev)
- prismjs/prism: ^1.16
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-01 03:39:54 UTC
README
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.