Recipes
Custom theme from JSON
Load a custom Lumis theme from JSON and use it for highlighting.
const theme = await fetch('/my_theme.json').then(r => r.json())
const html = await highlight('const x = 1', htmlInline({language: javascript, theme}))
Load a custom Lumis theme from JSON and use it for highlighting.
const theme = await fetch('/my_theme.json').then(r => r.json())
const html = await highlight('const x = 1', htmlInline({language: javascript, theme}))