{
  "type": "code-editor",
  "description": "Code editor with syntax highlighting.",
  "hasChildren": false,
  "propsSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "properties": {
      "label": {
        "description": "Label displayed above the editor",
        "type": "string"
      },
      "param": {
        "description": "Canvas parameter name to sync the editor content with",
        "type": "string"
      },
      "defaultValue": {
        "default": "",
        "description": "Initial content",
        "type": "string"
      },
      "language": {
        "default": "sql",
        "description": "Syntax highlighting language.",
        "type": "string",
        "enum": [
          "sql",
          "python",
          "javascript",
          "json",
          "markdown"
        ]
      },
      "placeholderText": {
        "default": "Enter code...",
        "type": "string"
      },
      "readOnly": {
        "default": false,
        "type": "boolean"
      },
      "debounceMs": {
        "default": 0,
        "type": "number"
      },
      "style": {
        "description": "Inline CSS styles (e.g. \"padding: 8px\")",
        "type": "string"
      }
    },
    "description": "Code editor with multi-language syntax highlighting. Syncs content with a canvas parameter."
  }
}
