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: 29 days ago
JSON representation
Inline live code highlighting extension for Tiptap editor using lowlight and highlight.js
- Host: GitHub
- URL: https://github.com/nartix/tiptap-inline-code-highlight
- Owner: nartix
- License: mit
- Created: 2024-03-23T15:18:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-14T08:16:10.000Z (30 days ago)
- Last Synced: 2025-06-14T08:28:22.970Z (30 days ago)
- Topics: hightlightjs, lowlight, prosemirror, tiptap
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@nartix/tiptap-inline-code-highlight
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
