
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
codemirror-sfmc
Advanced tools
CodeMirror 6 extensions for Salesforce Marketing Cloud templates (HTML with AMPscript / SSJS): highlighting theme, completion wired to sfmc-language-lsp.
CodeMirror 6 extensions for Salesforce Marketing Cloud HTML templates: embedded AMPscript and SSJS highlighting and autocompletion powered by sfmc-language-lsp.
Install CodeMirror 6 (@codemirror/state, @codemirror/view, and your preferred basic setup, e.g. the codemirror meta-package) then add:
import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { sfmcTemplateExtensions } from 'codemirror-sfmc';
const state = EditorState.create({
doc: '<html>%%=Concat("a","b")=%%</html>',
extensions: [
/* your basic keymap / line numbers here */
...sfmcTemplateExtensions(),
],
});
new EditorView({ state, parent: document.body });
Language detection matches the VS Code extension: AMPscript markers (%%[, %%=, language="ampscript") take priority over <script runat="server"> for SSJS.
sfmcTemplateExtensions() — highlight plugin + theme + autocompletion.sfmcTemplateHighlightPlugin, sfmcEditorTheme, sfmcAutocomplete() — compose your own stack.codemirror-sfmc/detect — detectTemplateLanguage and helpers without pulling in @codemirror/* (for thin browser bundles).MIT — see LICENSE.
FAQs
CodeMirror 6 extensions for Salesforce Marketing Cloud templates (HTML with AMPscript / SSJS): highlighting theme, completion wired to sfmc-language-lsp.
The npm package codemirror-sfmc receives a total of 3 weekly downloads. As such, codemirror-sfmc popularity was classified as not popular.
We found that codemirror-sfmc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.