Skip to main content

CodeSnippet

    Use the CodeSnippet to display a code block in a read-only context. By default, the code is formatted but not highlighted.

    Behavior tracking attributes

    Strato sets these data-dt-* attributes on the DOM elements of the component, so that Real User Monitoring can track user interactions. They cannot be changed by the consuming application.

    CodeSnippet

    AttributeValue
    data-dt-componentCodeSnippet

    Copy

    AttributeValue
    data-dt-children-nameCopy

    Download

    AttributeValue
    data-dt-children-nameDownload

    ActionsMenu

    AttributeValue
    data-dt-componentCodeSnippet
    data-dt-children-nameOpenActionsMenu
    data-dt-children-nameCopy
    data-dt-children-nameDownload
    Still have questions?
    Find answers in the Dynatrace Community