Set the editor language
set_languageChange the syntax-highlighting language of a shared pad, such as "markdown" or "rust", using a Monaco language ID. The update applies instantly for all viewers.
Instructions
Sets the syntax-highlighting language of a pad (Monaco language id, e.g. "markdown", "javascript", "rust"). Last writer wins; the change is visible to everyone who has the pad open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the pad, the part after # in its URL | |
| language | Yes | Monaco editor language id for syntax highlighting, e.g. "markdown", "javascript", "rust", "plaintext" |