PHPackages                             thejoshsmith/craft-prism-syntax-highlighting - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thejoshsmith/craft-prism-syntax-highlighting

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

thejoshsmith/craft-prism-syntax-highlighting
============================================

Adds a new field type that provides syntax highlighting capabilities using PrismJS.

4.0.1(9mo ago)14.7k3MITPHPPHP ^8.2CI failing

Since Jun 29Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/verbb/prism)[ Packagist](https://packagist.org/packages/thejoshsmith/craft-prism-syntax-highlighting)[ GitHub Sponsors](https://github.com/verbb)[ RSS](/packages/thejoshsmith-craft-prism-syntax-highlighting/feed)WikiDiscussions craft-5 Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (16)Used By (0)

[![Prism icon](https://camo.githubusercontent.com/07d16e886e9b680642347ef65062562387ac4da2692cde0467ca1a70f030d3f7/68747470733a2f2f6173736574732e76657262622e696f2f706c7567696e732f707269736d2f707269736d2d69636f6e2e737667)](https://camo.githubusercontent.com/07d16e886e9b680642347ef65062562387ac4da2692cde0467ca1a70f030d3f7/68747470733a2f2f6173736574732e76657262622e696f2f706c7567696e732f707269736d2f707269736d2d69636f6e2e737667)

Prism for Craft CMS
===================

[](#prism-for-craft-cms)

Prism is a Craft CMS plugin to provide syntax highlighting capabilities using [prism.js](https://prismjs.com/).

Features
--------

[](#features)

- Syntax highlighting in realtime
- Over 170 different supported syntaxes
- Ships with 8 default themes, and supports adding custom themes
- Line numbers
- Configurable tab widths and editor height
- Shortcut keys (indentation and undo/redo)
- Support for Matrix &amp; Super Table
- Works with Live Preview

Documentation
-------------

[](#documentation)

Visit the [Prism Plugin page](https://verbb.io/craft-plugins/prism) for all documentation, guides, pricing and developer resources.

Credit &amp; Thanks
-------------------

[](#credit--thanks)

Originally created by [Josh Smith ](https://www.joshsmith.dev).

Support
-------

[](#support)

Get in touch with us via the [Prism Support page](https://verbb.io/craft-plugins/prism/support) or by [creating a Github issue](https://github.com/verbb/prism/issues)

Sponsor
-------

[](#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](https://github.com/sponsors/verbb) development.

[ ![Verbb](https://camo.githubusercontent.com/98f2680f5948987cd8f4b418d67159eb0befb6da92060f286671b05bf39d40bd/68747470733a2f2f76657262622e696f2f6173736574732f696d672f76657262622d70696c6c2e737667)](https://verbb.io)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance69

Regular maintenance activity

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 57.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~201 days

Recently: every ~233 days

Total

12

Last Release

297d ago

Major Versions

1.0.5 → 2.0.02022-12-30

2.0.0 → 3.0.02022-12-30

3.0.0 → 4.0.0-beta.12024-03-04

3.0.1 → 4.0.12025-07-18

PHP version history (2 changes)3.0.0PHP ^8.0.2

4.0.0-beta.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/843060e17dd1d74064b894e0fc858dfa106921c07a0266c1100eb2d478175093?d=identicon)[thejoshsmith](/maintainers/thejoshsmith)

---

Top Contributors

[![engram-design](https://avatars.githubusercontent.com/u/1221575?v=4)](https://github.com/engram-design "engram-design (30 commits)")[![purplelemons-dev](https://avatars.githubusercontent.com/u/63922192?v=4)](https://github.com/purplelemons-dev "purplelemons-dev (21 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

syntaxcmsCraftcraftcmscraft-pluginhighlightingprism syntax highlighting

### Embed Badge

![Health badge](/badges/thejoshsmith-craft-prism-syntax-highlighting/health.svg)

```
[![Health](https://phpackages.com/badges/thejoshsmith-craft-prism-syntax-highlighting/health.svg)](https://phpackages.com/packages/thejoshsmith-craft-prism-syntax-highlighting)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/field-manager

Manage your fields and field groups with ease.

197607.5k10](/packages/verbb-field-manager)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
