A Salesforce Marketing Cloud AMPscript syntax highlighter for Sublime Text.
- Install Package Control
- Open package control settings with
CTRL-SHIFT-Pthen selectInstall Package - Search for
AMPscript Syntax Highlighterand select it to install
- Opening a file with an
.ampor.ampscriptextension will automatically invoke the AMPscript Syntax Highlighter - To apply syntax highlighting to a document, use the
CTRL-SHIFT-Photkey combination and search forAMPscript. SelectSet Syntax: AMPscript Syntax Highlighter (HTML).
- 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)