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

indent

On this page

Description:

This key defines the indentation string used for block-level snippet content.

The value is a string that specifies the indentation tokens (typically spaces or tabs) applied to each line of block-level snippet content.

Appears in:
└── Snippet Style
    └── block
        └── indent
Type:
string
Examples:

In this example, we have configured block indentation to use two spaces.

Copied to clipboard
_snippets:
  highlight:
    snippet: <<highlight>> [[content]] <</highlight>>
    params:
      content:
        parser: content
        options:
          style:
            block:
              indent: '  '
{
  "_snippets": {
    "highlight": {
      "snippet": "<<highlight>> [[content]] <</highlight>>",
      "params": {
        "content": {
          "parser": "content",
          "options": {
            "style": {
              "block": {
                "indent": "  "
              }
            }
          }
        }
      }
    }
  }
}
Open in a new tab