Skip to main content

Installation

Pick the runtime you want to use first. The highlighting concepts stay the same across all of them.

npm install @lumis-sh/lumis @lumis-sh/themes

Use @lumis-sh/lumis for the runtime and @lumis-sh/themes for bundled themes.

Notes

  • JavaScript loads parser WASM files at runtime. By default they come from a CDN. See WASM and CDN.
  • For local JavaScript parser assets from npm, install per-language packages such as @lumis-sh/wasm-rust or bundle packages such as @lumis-sh/wasm-bundle-web.
  • The CLI caches parsers and custom themes in a local data directory.