Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nartix/tiptap-inline-code-highlight

Inline live code highlighting extension for Tiptap editor using lowlight and highlight.js
https://github.com/nartix/tiptap-inline-code-highlight

hightlightjs lowlight prosemirror tiptap

Last synced: 4 days ago
JSON representation

Inline live code highlighting extension for Tiptap editor using lowlight and highlight.js

Awesome Lists containing this project

README

        

# @nartix/tiptap-inline-code-highlight

This package is a port of `@tiptap/extension-code-block-lowlight` but for highlighting inline codes in the TipTap editor. It uses Lowlight to highlight codes.

## Usage

```bash
npm install @nartix/tiptap-inline-code-highlight
```

## Import the extension

```javascript
import CodeInlineLowlight from '@nartix/tiptap-inline-code-highlight';
```

## Add it to your Tiptap editor

```javascript
const editor = new Editor({
extensions: [
CodeInlineLowlight.configure({
lowlight,
}),
],
});
```

## Demo

![Demo of Tiptap inline code highlight](image.png)