Skip to content

SeanJA/ampscript-st2

Repository files navigation

AMPSCRIPT SYNTAX HIGHLIGHTER

A Salesforce Marketing Cloud AMPscript syntax highlighter for Sublime Text.

INSTALLATION

  1. Install Package Control
  2. Open package control settings with CTRL-SHIFT-P then select Install Package
  3. Search for AMPscript Syntax Highlighter and select it to install

USAGE

  • Opening a file with an .amp or .ampscript extension will automatically invoke the AMPscript Syntax Highlighter
  • To apply syntax highlighting to a document, use the CTRL-SHIFT-P hotkey combination and search for AMPscript. Select Set Syntax: AMPscript Syntax Highlighter (HTML).

FEATURES

  • Identifies the following AMPscript syntax:
    • code blocks
    • inline code
    • functions
    • language control elements -- conditionals, loops, variable declarations and assignments, operators
    • numbers
    • strings
    • system strings -- block and inline
    • variables
    • comments
    • constants
  • Supports all 148 AMPscript functions
  • Parses the majority of the system substitution strings
  • Highlights both AMPscript block types: %%[ ]%% and <script runat="server" language="ampscript"> </script>
  • Inherits base HTML syntax highlighting (text.html.basic)

UPDATES