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

output

Table of contents

Description:

This key defines the output format style for snippet content.

The value can be legacy, inline, or block. This controls how snippet content is formatted when output to source code.

Appears in:
└── Snippet Style
    └── output
Type:
string Required
Allowed values:
legacy
inline
block
Examples:

In this example, we have configured snippet output style to use block formatting.

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