Set the editor language
set_languageSet the syntax-highlighting language for a shared pad, with changes visible to all current 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" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | Shareable; anyone with it can read and edit. | |
| note | Yes | ||
| language | Yes | ||
| characters | Yes | Length of the pad after the write, in codepoints. |