Skip to main content

VS Code Extension

IntentText support inside VS Code: syntax highlighting, hover documentation, completions, snippets, diagnostics, a live preview, and trust commands.

Installation

Search "IntentText" in the VS Code Extensions panel, or:

code --install-extension intenttext.intenttext

The extension is also published as a .vsix in the repo (packages/vscode) for manual install.

Features

Syntax highlighting

IntentText keywords and template markers are highlighted with semantic coloring. Only reserved words are colored — the 40 canonical keywords, the 32 Arabic localized keyword names, and the namespaced extension keywords. The Latin synonym aliases older versions shipped (note, warning, tip, columns, …) have been removed, so they highlight as ordinary custom keywords — which is exactly what they now are:

CategoryColorKeywords
Document identityBluetitle, summary, meta, track
ContentGreentext, info, quote, code, image, link, task, done (+ x-doc/x-writer: def, figure, contact)
StructurePurplesection, sub, break, toc (+ x-doc: ref, deadline)
DataOrangeheaders, row, metric (+ x-form: input, output)
AgentRedcontext, ask, step, decision, gate, trigger, result, policy, audit (+ x-agent: memory, prompt, tool, error)
TrustGoldapprove, sign, freeze, amendment, certify, route, require (+ audit log: revision)
LayoutTealpage, header, footer, watermark, style (+ x-layout/x-doc: font, signline)

Callout variants (info: … | type: warning) are driven by the type: property, not a separate keyword. Arabic localized keyword names get the same color as their canonical keyword. Template variables ({{name}}) are highlighted distinctly.

Hover documentation

Hover over any keyword to see:

  • Description and category
  • Available pipe properties
  • Example usage
  • Link to full documentation

Completions

Type at the start of a line and get keyword completions; type after a | and get the pipe properties for that block type:

  • Keyword names (with descriptions) — canonical, Arabic localized, and extension keywords
  • Arabic localized keyword names (the canonical keyword is shown alongside)
  • Pipe properties after |

Snippets

Type a prefix and press Tab. The bundled snippets cover the common blocks, for example:

PrefixExpands to
docFull document skeleton
sectionSection with content
taskTask block
stepWorkflow step
gateGate with condition
approveApproval block
signSignature block
metricMetric with value and target
contactContact with details
deadlineDeadline with date
amendmentAmendment block

(Run Insert Snippet to see the full list — there are snippets for most keywords, including workflow, headers, input/output, route/require, certify, track, freeze, revision, header/footer/watermark, and style.)

Diagnostics

Inline diagnostics surface the core validator's findings as you type — semantic issues (broken references, unresolved variables, structural problems) and the parser's own diagnostics, each marked as an error or warning.

Commands

Access via Command Palette (Cmd+Shift+P):

CommandDescription
IntentText: Open PreviewRender and preview the current file
IntentText: Open Preview to the SideOpen the preview in a side panel
IntentText: Seal DocumentSeal the current file
IntentText: Verify DocumentCheck integrity
IntentText: Show Document HistoryShow the document's trust history

Preview panel

A live-rendered HTML preview (Open Preview / Open Preview to the Side) that re-renders as you edit the document.

Source

Repository: intenttext-vscode