Skip to main content

Injected languages (HTML + CSS + JS)

import html from '@lumis-sh/lumis/langs/html'
import css from '@lumis-sh/lumis/langs/css'
import javascript from '@lumis-sh/lumis/langs/javascript'
const hl = await createHighlighter({languages: [html, css, javascript]})
const output = hl.highlight(source, htmlInline({language: html, theme: dracula}))

Load every participating language in JavaScript, not just the outer one.