☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

soft_wrap

Table of contents

Description:

This key toggles whether long lines wrap to the next line in Code Inputs.

Setting this key to true will wrap lines that exceed the width of the code area to the next line without adding a line break character.

By default, this key is false (i.e., long lines extend horizontally and require horizontal scrolling).

Appears in:
└── _inputs
    └── *
        └── Code Input
            └── options
                └── soft_wrap
Type:
boolean
Default value:
false
Examples:

In this example, we have configured a code input to enable soft line wrapping for better readability of long lines.

Copied to clipboard
_inputs:
  markdown_content:
    type: code
    label: Markdown
    options:
      soft_wrap: true
{
  "_inputs": {
    "markdown_content": {
      "type": "code",
      "label": "Markdown",
      "options": {
        "soft_wrap": true
      }
    }
  }
}
Open in a new tab