SUPPORTED_LANGS
const
Code & Syntax
Frozen list of language identifiers (CODE_LANG enum values) bundled with the default shiki highlighter. OrigamCode accepts only these values for its `lang` prop unless a custom highlighter is registered. Keep this list and the `langs` argument of `createHighlighter()` in lockstep.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useCode
OrigamCode
ICodeProps
Usage
Examples
Ready-to-paste code snippets using this constant.
Validating a lang value before passing it to OrigamCode