by Caen
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.
You can install the package via composer:
composer require desilva/filament-simple-highlight-field
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'), ]); }}