PHPackages                             desilva/filament-simple-highlight-field - 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. desilva/filament-simple-highlight-field

ActiveLibrary

desilva/filament-simple-highlight-field
=======================================

Adds a simple read-only Highlight.js pseudo-field to FilamentPHP

v1.3.0(3y ago)63.1k↓10.3%1[2 issues](https://github.com/caendesilva/filament-simple-highlight-field-plugin/issues)MITPHPPHP ^8.0

Since Sep 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/caendesilva/filament-simple-highlight-field-plugin)[ Packagist](https://packagist.org/packages/desilva/filament-simple-highlight-field)[ Docs](https://github.com/desilva/filament-simple-highlight-field)[ RSS](/packages/desilva-filament-simple-highlight-field/feed)WikiDiscussions main Synced 1mo ago

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

desilva/filament-simple-highlight-field
=======================================

[](#desilvafilament-simple-highlight-field)

[![Latest Version on Packagist](https://camo.githubusercontent.com/083dcb67fbcbd61105ab7efefca9f511c8380d114a4c4fd659b85d01b28f8125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646573696c76612f66696c616d656e742d73696d706c652d686967686c696768742d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desilva/filament-simple-highlight-field)[![Total Downloads](https://camo.githubusercontent.com/1f55f0ff9454791336bd0e0d023b88760f81e72f8c8881a98df0a955d1ea06c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646573696c76612f66696c616d656e742d73696d706c652d686967686c696768742d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/desilva/filament-simple-highlight-field)

Adds a simple read-only Highlight.js pseudo-field to FilamentPHP
----------------------------------------------------------------

[](#adds-a-simple-read-only-highlightjs-pseudo-field-to-filamentphp)

Adds a simple form field that renders a read-only Highlight.js code block for FilamentPHP. The plugin is new and may be unstable and contain bugs. PRs and issue reports are welcome.

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

[](#installation)

You can install the package via composer:

```
composer require desilva/filament-simple-highlight-field
```

This package supports Laravel 9 and Laravel 10.

Usage
-----

[](#usage)

Simply use the component as you'd use any other Filament field. It's especially perfect for the resource view page where it blends right in.

```
use Desilva\FilamentSimpleHighlightField\HighlightField;

class FileResource extends Resource
{
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                HighlightField::make('contents')
                    ->columnSpan('full'),
            ]);
    }
}
```

Roadmap
-------

[](#roadmap)

- Add option to customize the theme
- Dark mode support (doesn't work with custom theme)
- Add method chain to specify the language

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-simple-highlight-field-config"
```

This is the contents of the published config file:

```
return [
    // By default, the plugin will load serve the assets from Filament. You can uncomment the following to specify
    // a custom theme that will then be loaded from the Highlight.js CDN. See https://highlightjs.org/static/demo
    // 'theme' => 'nord',
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-simple-highlight-field-views"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Contributing is pretty chill and is highly appreciated! Just send a PR and/or create an issue!

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review my [General Security Policy](https://git.desilva.se/security/) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Caen De Silva](https://github.com/caendesilva)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.1% 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 ~60 days

Total

5

Last Release

1111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71ba01b4aa7fbc633c6fe6630b573400b40928d79574b657eb8d45524ca28aa0?d=identicon)[caendesilva](/maintainers/caendesilva)

---

Top Contributors

[![emmadesilva](https://avatars.githubusercontent.com/u/95144705?v=4)](https://github.com/emmadesilva "emmadesilva (58 commits)")[![caendesilva](https://avatars.githubusercontent.com/u/225740250?v=4)](https://github.com/caendesilva "caendesilva (3 commits)")

---

Tags

laraveldesilvafilament-simple-highlight-field

### Embed Badge

![Health badge](/badges/desilva-filament-simple-highlight-field/health.svg)

```
[![Health](https://phpackages.com/badges/desilva-filament-simple-highlight-field/health.svg)](https://phpackages.com/packages/desilva-filament-simple-highlight-field)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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