UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

8 lines (7 loc) • 279 B
import { defineLanguage } from '../core.js'; import { collectMarkupRanges } from '../internal/markup.js'; export const html = defineLanguage({ name: 'html', aliases: ['htm', 'xml', 'angular-html'], tokenize: (code, context) => collectMarkupRanges(code, context), });