CODE_LANG

enum
Code

Supported syntax-highlighting languages for OrigamCode. Each value maps to a shiki grammar bundle shipped with the component.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

CODE_LANG.PLAINTEXT
No syntax highlighting — raw plain text.
CODE_LANG.VUE
Vue SFC syntax (template, script, style blocks).
CODE_LANG.TS
TypeScript.
CODE_LANG.JS
JavaScript.
CODE_LANG.TSX
TypeScript with JSX.
CODE_LANG.JSX
JavaScript with JSX.
CODE_LANG.SCSS
SCSS (Sass).
CODE_LANG.CSS
CSS.
CODE_LANG.JSON
JSON.
CODE_LANG.BASH
Bash / shell script.
CODE_LANG.HTML
HTML.
CODE_LANG.XML
XML.
CODE_LANG.YAML
YAML.
CODE_LANG.MD
Markdown.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Rendering a TypeScript snippet

vue