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

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Valeur résolue

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Validating a lang value before passing it to OrigamCode

typescript