承接 norman-huth/nova-prism-js 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

norman-huth/nova-prism-js

最新稳定版本:1.1.1

Composer 安装命令:

composer require norman-huth/nova-prism-js

包简介

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

README 文档

README

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

Change Theme

Set the Prism theme for light and dark mode.

  • Theme from prismjs.com: default, coy, dark, funky, okaidia, solarizedlight, tomorrow, twilight
  • Theme from PrismJS/prism-themes: a11y-dark, atom-dark, base16-ateliersulphurpool-light, cb, coldark-cold, coldark-dark, coy-without-shadows, darcula, dracula, duotone-dark, duotone-earth, duotone-forest, duotone-light, duotone-sea, duotone-space, ghcolors, gruvbox-dark, gruvbox-light, holi-theme, hopscotch, lucario, material-dark, material-light, material-oceanic, night-owl, nord, one-dark, one-light, pojoaque, shades-of-purple, solarized-dark-atom, synthwave84, vs, vsc-dark-plus, xonokai, z-touch
PrismJs::make(__('Content'), 'content')
    ->setTheme('tomorrow')
    ->setDarkTheme('twilight'),

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.

统计信息

  • 总下载量: 549
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固