
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@gdquest/codemirror-freeze
Advanced tools
Setups a Codemirror view to "freeze" code between specific comment tags.
freeze()
extensionThis extension setup a Codemirror view to "freeze" code between specific comment tags.
By default, freeze()
has "start-freeze"
and "end-freeze"
as keywords, but it is customizable by passing the new names in parameter.
import { basicSetup } from "codemirror";
import { EditorView } from "@codemirror/view";
import { javascript } from "@codemirror/lang-javascript";
import { freeze } from "@gdquest/codemirror-freeze";
new EditorView({
extensions: [basicSetup, javascript(), freeze()],
doc: `
Hello. This is editable.
// start-freeze
This is frozen. Cannot change this line.
// end-freeze
This part is editable.
`.trim(),
});
FAQs
Setups a Codemirror view to "freeze" code between specific comment tags.
We found that @gdquest/codemirror-freeze demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.