norman-huth/nova-prism-js

Syntax Highlighting with Prism.js. A Laravel Nova detail field.

Downloads

10

Stars

0

Version

1.0.1

Nova Prism.js

A Nova detail field with Syntax Highlighter via Prism.js. Usable with Markdown or HTML.

Preview

Installation

composer require norman-huth/nova-prism-js

Usage


use NormanHuth\NovaPrismJs\PrismJs;

//..
    public function fields(NovaRequest $request): array
    {
        return [
            //..
              PrismJs::make(__('Content'), 'content'),
            //..
        ]
    }

Options

Full Width

PrismJs::make(__('Content'), 'content')->fullWidth(),

Use HTML instead of Markdown

PrismJs::make(__('Content'), 'content')->disableMarkdown(),

More Laravel Nova Packages

Stand With Ukraine

Woman. Life. Freedom.

Muetze42

Author

Muetze42