Loading
Create Content in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Code Snippet

          Create a Code Snippet

          Use code snippets in Marketing Cloud Engagement Content Builder to save reusable bits of HTML, AMPscript, and Guide Template Language. Insert snippets when editing HTML via the Code Snippets toolbar selector, or by typing the Customer Key value for the snippet followed by the Tab key. You can also create a code snippet content block by clicking Create > Content Blocks > Code Snippet. You can reference Code Snippets with the AMPscript ContentBlockByKey and ContentBlockByID functions.

          Note
          Note Code snippets behave like content blocks but are different because they don’t include an extra HTML table that wraps the content.

          Follow this task to create a code snippet in the editor.

          1. In the Content Builder editor, highlight the HTML you want to use as a code snippet.
          2. Click code snippet from the toolbar menu and select Create New Snippet.
          3. Alternatively, highlight your HTML, then right-click and select Create Code Snippet.
          4. Complete the fields and click Save. To edit a saved code snippet, select the code snippet from the content library and click Edit.
          • Google Promotions Tab
            Learn how to use a Google Promotions Tab code in Marketing Cloud Engagement Content Builder to enhance your email promotions with images, deals, expiration dates, and more.
           
          Loading
          Salesforce Help | Article