定制 assertchris/laravel-highlight-web-component 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

assertchris/laravel-highlight-web-component

最新稳定版本:1.0.2

Composer 安装命令:

composer require assertchris/laravel-highlight-web-component

包简介

A Laravel plugin with a custom Web Component for highlighting code, using tempest/highlight.

README 文档

README

This is a Laravel plugin which introduces a custom Web Component for highlighting code using tempest/highlight.

To get started:

composer require assertchris/laravel-highlight-web-component

Import and use the custom component:

import Component from '../../vendor/assertchris/laravel-highlight-web-component/src/component.js';
customElements.define('w-code', Component);

Use it in your templates:

<w-code lang="php">
    print "hello world";
</w-code>

Warning

You must still have Axios in your Laravel project for this to work.

Configuration

You can view and customise the config by publishing the vendor config files:

php artisan vendor:publish --provider=AC\\LaravelHighlightWebComponent\\Provider

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固