ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Amp​Script Highlighter

by SeanJA ST2/ST3

ampscript syntax highlighting

Details

  • 2018.02.21.21.09.25
  • github.​com
  • github.​com
  • 4 months ago
  • 23 minutes ago
  • 5 years ago

Installs

  • Total 2K
  • Win 1K
  • OS X 690
  • Linux 193
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11
Windows 0 2 1 2 1 0 2 1 0 1 1 2 1 2 16 1 0 2 2 2 0 2 4 0 0 1 3 3 3 0 1 1 1 3 2 3 0 0 4 2 2 1 3 1 0 3
OS X 0 0 1 1 0 1 0 0 0 0 1 1 2 2 2 0 0 2 0 1 3 1 0 0 1 0 0 0 3 0 0 0 2 1 1 3 0 0 1 6 3 3 1 1 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

AMPScript

It is an exact target creation, you can find the docs here: https://developer.salesforce.com/docs/atlas.en-us.mc-programmatic-content.meta/mc-programmatic-content/index.htm

INSTALL

  1. Install Sublime Package Control
  2. Open package control settings ctrl-shift-p then Install Package
  3. Search for AmpScript Highlighter
  4. Enojy :)

FEATURES

  • Highlights of all the functions in the wiki
  • Highlights all the personalization strings
  • To see what else works you can look in the test.amp file inside the AmpScript Highlighter package folder for samples from exact target
  • Some snippets for completing ampscript blocks %%[ ]%% is really annoying to type when you have bracket complete on

NOTES

  • Use one % or two %% signs to delimit your code blocks (more will technically work, but at somepoint it gets a little silly)
  • If you're working with pasted text that has html and ampscript, make sure you select the HTML(AMPSCRIPT) syntax
  • If you are only working with ampscript then you should be ok with the basic AMPSCRIPT syntax

TODO

  1. Put in package control
  2. Syntax hilighting in html attributes
  3. Auto completion of code/Snippets

Patches

Submit patches to the .JSON-tmLanguage files, not the xml files which are generated from them.

Build with AAAPackageDev and test against test.amp