blockly > CodeGenerator > STATEMENT_SUFFIX
CodeGenerator.STATEMENT_SUFFIX property
Arbitrary code to inject after every statement. Any instances of '%1' will be replaced by the block ID of the statement. E.g. highlight(%1);\n
Signature:
STATEMENT_SUFFIX: string | 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.
[null,null,["Last updated 2024-09-18 UTC."],[[["`CodeGenerator.STATEMENT_SUFFIX` allows you to add code after each generated statement."],["This property uses `%1` as a placeholder for the statement's block ID, enabling customized code injection, such as highlighting."],["Its value can be a string containing the code snippet or null if no suffix is needed."]]],[]]