Package Control

The Sublime Text package directory, rebooted.

Carve

Sublime Text package for the Carve markup language (.crv)

SepAugJulJunMayAprMarFebJan Dec2025 NovOctSep 2026-W40 | installs: 0 | removals: 0 | upgrades: 0 2026-W40 | installs: 0 | removals: 0 | upgrades: 0 2026-W40 | installs: 0 | removals: 0 | upgrades: 0 2026-W39 | installs: 1 | removals: 0 | upgrades: 1 2026-W39 | installs: 1 | removals: 0 | upgrades: 1 2026-W39 | installs: 1 | removals: 0 | upgrades: 1 2026-W38 | installs: 1 | removals: 0 | upgrades: 0 2026-W38 | installs: 1 | removals: 0 | upgrades: 0 2026-W38 | installs: 1 | removals: 0 | upgrades: 0 2026-W37 | installs: 0 | removals: 0 | upgrades: 1 2026-W37 | installs: 0 | removals: 0 | upgrades: 1 2026-W37 | installs: 0 | removals: 0 | upgrades: 1 2026-W36 | installs: 3 | removals: 2 | upgrades: 0 2026-W36 | installs: 3 | removals: 2 | upgrades: 0 2026-W36 | installs: 3 | removals: 2 | upgrades: 0 2026-W35 | installs: 1 | removals: 0 | upgrades: 0 2026-W35 | installs: 1 | removals: 0 | upgrades: 0 2026-W35 | installs: 1 | removals: 0 | upgrades: 0 2026-W34 | installs: 1 | removals: 0 | upgrades: 1 2026-W34 | installs: 1 | removals: 0 | upgrades: 1 2026-W34 | installs: 1 | removals: 0 | upgrades: 1 2026-W33 | installs: 0 | removals: 0 | upgrades: 0 2026-W33 | installs: 0 | removals: 0 | upgrades: 0 2026-W33 | installs: 0 | removals: 0 | upgrades: 0 2026-W32 | installs: 0 | removals: 0 | upgrades: 0 2026-W32 | installs: 0 | removals: 0 | upgrades: 0 2026-W32 | installs: 0 | removals: 0 | upgrades: 0 2026-W31 | installs: 1 | removals: 0 | upgrades: 0 2026-W31 | installs: 1 | removals: 0 | upgrades: 0 2026-W31 | installs: 1 | removals: 0 | upgrades: 0 2026-W30 | installs: 0 | removals: 1 | upgrades: 0 2026-W30 | installs: 0 | removals: 1 | upgrades: 0 2026-W30 | installs: 0 | removals: 1 | upgrades: 0 2026-W30 | installs: 0 | removals: 1 | upgrades: 0 024 WeeklyInstalls 024 WeeklyUpgrades 2026-10-01 | upgrades: 0 | 0 on that day 0.1.7 2026-09-21 | upgrades: 1 | 0 on that day 0.1.6 2026-09-08 | upgrades: 1 | 0 on that day 0.1.5 2026-W35 | upgrades: 0 0.1.4 2026-W33 | upgrades: 0 0.1.3 2026-W30 | upgrades: 0 0.1.2 2026-W29 0.1.1 / 0.1.0
Installations: recent average 1 per week, 8 in total
Installations minus removals
Upgrades

Links

Versions

0.1.7 (ST3092+) ·
2026-10-01 02:48

More

Carve for Sublime Text

Syntax highlighting for the Carve markup language in Sublime Text 3 and 4.

Files with a .crv extension are highlighted automatically.

This package is authored from the maintained Carve TextMate grammar (scope text.carve) so its scope names line up with existing color schemes.

Features

Install

Package Control

  1. Open the command palette (Ctrl/Cmd+Shift+P).
  2. Run Package Control: Install Package.
  3. Search for Carve and install it.

Manual

  1. Find your packages directory via Preferences > Browse Packages....
  2. Create a folder named Carve inside it.
  3. Copy the contents of this repository into that folder.

The package does not override any editor settings. Since Carve is prose-oriented markup, settings like these tend to work well - open a .crv file and pick Preferences > Settings - Syntax Specific to apply them for Carve files only:

{
    "tab_size": 2,
    "translate_tabs_to_spaces": true,
    "word_wrap": true,
    "spell_check": true,
    // Spell-check prose only: skip code spans, code blocks, raw passthrough,
    // math, links, and attribute values.
    "spelling_selector": "text.carve - markup.raw - meta.math - markup.underline.link - meta.attributes",
    "trim_trailing_white_space_on_save": false
}

trim_trailing_white_space_on_save matters more here than in most languages: trailing spaces inside a Carve code block are content and render inside <pre>.

Commands

Available from the command palette:

Command What it does
Carve: Go to Cross-Reference Target Jumps from a </#id> under the cursor to the heading it points at (explicit {#id} attributes and derived heading slugs both resolve, case-insensitively, like Carve itself).
Carve: Format Buffer (carve fmt) Runs carve fmt over the buffer. Formats unsaved content and keeps undo history.
Carve: Import Markdown/HTML as .crv (carve migrate) Converts the current .md or .html file to a .crv next to it with carve migrate --from markdown or --from html, then opens the result. Asks before overwriting an existing .crv. Reads the file on disk, so save first.

The import command is also in the sidebar context menu (Carve: Import as .crv) when you right-click a single .md, .markdown, .html or .htm file.

Formatting and import need the carve CLI on PATH (npm install -g @markup-carve/carve or cargo install carve-lang). The npm carve 0.1.7 currently exits without output when started through its installed symlink, so import reports "produced no output"; use the cargo build, or set carve_binary to a command list such as ["node", "/path/to/@markup-carve/carve/dist/cli.js"]. Configure in Preferences > Package Settings:

{
    "carve_binary": "carve",
    "carve_format_on_save": false
}

Export to Markdown or HTML

Exporting goes the other way and comes from the language server, not this package. Install sublime-carve-lsp and the Export as Markdown and Export as HTML code actions write notes.md or notes.html next to notes.crv. They need a carve-lsp release newer than 0.1.7.

Build system

With a .crv file open, Tools > Build (ctrl+b) runs carve lint and the reported problems are clickable, because carve prints file:line:column. Tools > Build With... offers the other variants: lint the whole project, carve fmt --check, carve fmt -w, render HTML to stdout or to a file, and an ANSI terminal preview.

Snippets

Tab triggers for the constructs that are tedious to type by hand: note (admonition), table, codegroup, listtable, figure (image + caption), deflist, fn (footnote + definition), xref, code, fm (frontmatter), math, spoiler. Typing an admonition or extension name (warning, tabs, toc, mermaid, ...) also offers a completion that expands the whole fence.

Running the syntax tests

See the development guide for running the syntax suite locally and maintaining the package.

Results

Packages