PHPackages                             parallax/filament-syntax-entry - 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. parallax/filament-syntax-entry

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

parallax/filament-syntax-entry
==============================

Add a Filament infolist entry for themeable syntax highlighting.

2.1.1(1y ago)1869.3k—4.1%7[4 PRs](https://github.com/parallax/filament-syntax-entry/pulls)MITPHPPHP ^8.3CI failing

Since Feb 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/parallax/filament-syntax-entry)[ Packagist](https://packagist.org/packages/parallax/filament-syntax-entry)[ Docs](https://github.com/parallax/filament-syntax-entry)[ RSS](/packages/parallax-filament-syntax-entry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (10)Versions (8)Used By (0)

Filament Syntax Entry
=====================

[](#filament-syntax-entry)

[![Latest Version on Packagist](https://camo.githubusercontent.com/38eed8cf045451f3ad9e85ee66bb7a9b36a218b73f7d53d4e18d87bc6d48c800/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706172616c6c61782f66696c616d656e742d73796e7461782d656e7472793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parallax/filament-syntax-entry)[![Software License](https://camo.githubusercontent.com/c4377ad28dee75d3444070b9870e6c428a79232fea5538f0c1b7859dfe8bede6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706172616c6c61782f66696c616d656e742d73796e7461782d656e7472793f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/78c434907a4c67d20b15e9a97df38adc8d1a16f00d4f4f142910d4865bd0eef1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706172616c6c61782f66696c616d656e742d73796e7461782d656e7472793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parallax/filament-syntax-entry)[![Stars](https://camo.githubusercontent.com/7c0e66032abff0c0116742040bd3d72dbd37d540d812ca73e4502939f830cba6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706172616c6c61782f66696c616d656e742d73796e7461782d656e7472793f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7c0e66032abff0c0116742040bd3d72dbd37d540d812ca73e4502939f830cba6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706172616c6c61782f66696c616d656e742d73796e7461782d656e7472793f7374796c653d666c61742d737175617265)

Add a Filament [infolist entry](https://filamentphp.com/docs/3.x/infolists/entries/getting-started) for themeable server-side syntax highlighting using [tempestphp/highlight](https://github.com/tempestphp/highlight).

[![](https://github.com/parallax/filament-syntax-entry/raw/main/assets/filament-syntax-entry.jpg)](https://github.com/parallax/filament-syntax-entry/raw/main/assets/filament-syntax-entry.jpg)

Installation
------------

[](#installation)

Install the package via composer:

```
composer require parallax/filament-syntax-entry
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-syntax-entry-views"
```

Upgrading from 1.x
------------------

[](#upgrading-from-1x)

There are a couple of important changes to be aware of when upgrading to version 2.x:

- PHP 8.3 is required for server-side syntax highlighting
- Highlight.js is no longer supported
- Theme selection has been replaced with the ability to create custom themes

Quickstart
----------

[](#quickstart)

### Add the [Infolist entry](https://filamentphp.com/docs/3.x/infolists/entries/getting-started)

[](#add-the-infolist-entry)

Add the `SyntaxEntry` to the `$infolist->schema()` method.

```
