Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > suppressPrefixSuffix
Block.suppressPrefixSuffix property
An optional property for suppressing adding STATEMENT_PREFIX and STATEMENT_SUFFIX to generated code.
Signature:
suppressPrefixSuffix: boolean | null;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`suppressPrefixSuffix` is an optional property of the `Block` class in Blockly."],["It controls whether the `STATEMENT_PREFIX` and `STATEMENT_SUFFIX` are added to the generated code for a block."],["When set to `true`, it prevents the addition of these prefixes and suffixes, allowing for more customized code generation."]]],["The `suppressPrefixSuffix` property, found within the `Block` class, is a boolean or null value that controls the addition of `STATEMENT_PREFIX` and `STATEMENT_SUFFIX` to generated code. Setting this property allows users to prevent these prefixes and suffixes from being automatically added during code generation. This property is optional and provides fine-grained control over the output code format.\n"]]