I've just discovered that AMPscript (a scripting language for Salesforce Marketing Cloud) supports syntax highlighting in SFSE using the language tag lang-ampscript
after the code fence (```
). Where did that come from?! I've always used javascript syntax highlighting before. Here's one of my AMPscript answers with code highlighting.
Oh, wait, there's one for Apex too! (lang-apex
).
Integer x, sign;
// Your code
if (x <= 0) {
if (x == 0) {
sign = 0;
} else {
sign = -1;
}
}
Is there a complete list of undocumented syntax highlighting for other languages (SOQL, Visualforce, etc)?