A Salesforce Marketing Cloud AMPscript syntax highlighter for Sublime Text.
- Install Package Control
- Open package control settings with
CTRL-SHIFT-P
then selectInstall Package
- Search for
AMPscript Syntax Highlighter
and select it to install
- 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 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
)