• Simple Highlight Field

Simple Highlight Field

Plugin information

by Caen

Field Form builder

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.

Support

#simple-highlight-field on Discord

Views

1596

License

MIT

Documentation

Installation

You can install the package via composer:

composer require desilva/filament-simple-highlight-field

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'),
]);
}
}