Search by

markup-carve / carve-grammars

dereuromark

Syntax-highlighting grammars for the Carve markup language (TextMate grammar for Torchlight / phiki, plus Prism and highlight.js definitions)

Package info

github.com/markup-carve/carve-grammars

Language:JavaScript

pkg:composer/markup-carve/carve-grammars

Statistics

Installs: 4 234

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v0.1.24 2026-11-12 18:49 UTC

README

Editor and highlighting grammars for Carve, with Tiptap, Prism, highlight.js, and TextMate entry points. The package targets Carve 0.1.x and uses @markup-carve/carve 0.1.16 for its editor integration. Read the Carve documentation for the language syntax.

Install

npm install @markup-carve/carve-grammars prismjs

Usage

import Prism from 'prismjs'
import '@markup-carve/carve-grammars/prism/carve.js'

Prism.highlight(source, Prism.languages.carve, 'carve')

Documentation

License

MIT