@xiehy/plugin-mulit-codeblock
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@xiehy/plugin-mulit-codeblock

多功能代码块组件(React)

安装

$ yarn add @xiehy/plugin-mulit-codeblock

添加到引擎

import Engine, { EngineInterface } from '@xiehy/engine';
import mulit_codeblock from '@xiehy/plugin-mulit-codeblock';

new Engine(...,{ plugins:{
	[mulit_codeblock]: {
		/* 支持的语言 查看 https://codemirror.net/5/mode/index.html */
		language: [] // 配置语言
	}
}})

命令

//使用 command 执行插件
engine.command.execute('mulit_codeblock');

/*
	::: code 
	::: code(javascript,html,css) 可以实现快捷插入
*/

Readme

Keywords

Package Sidebar

Install

npm i @xiehy/plugin-mulit-codeblock

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

155 kB

Total Files

31

Last publish

Collaborators

  • xiehy