Adds syntax highlighting, completions, and snippets to
.ds (Demandware Script) files in Atom.
apm install language-sfcc
language-sfccin the search box and press Enter
The description for autocomplete ISML tags are grabbed from the official Salesforce Commerce Cloud B2C documentation.
The autocompletion of the tags respects the semantics, for the correct functionality of the tags in the sfcc environment.
Look at this example of spacing of the
<isreplace/> tag. The highlight of the tag color helps you understand if the type is wrong.
Once the package is installed, all the snippets available for the various tag servers are available in the section: Snippets. By default, any completion of any tag server can be called without the is extension.
Example: if you type
<isinclude template="common/layout/page" />
By default the ISML syntax includes the default scope for HTML files (
text.html.basic), so many of the packages that work for the
.html extension also work in the
.isml files. For example, the extension for automatic closing of tags.
The package supports, compared to other extensions for the various editors, full highlight syntax between the
isml tags. Even in complex situations. Here is an example.
Language SFCC is released under the MIT license.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.