# Repeated highlighting (JavaScript / TypeScript) (/recipes/repeated-highlighting-javascript)

```js
import {createHighlighter} from '@lumis-sh/lumis'
import {htmlInline} from '@lumis-sh/lumis/formatters'
import web from '@lumis-sh/wasm-bundle-web'
import frappe from '@lumis-sh/themes/catppuccin_frappe'

const hl = await createHighlighter({
  languages: [web],
})
await hl.loadLanguage('javascript')

const html = hl.highlight(
  'const x = 1',
  htmlInline({language: 'javascript', theme: frappe}),
)
```

See [JavaScript / TypeScript](/usage/javascript) for the reusable highlighter workflow.