Visual Studio Code and Cursor extension for the Meld prompt scripting language.
Features
Syntax highlighting for Meld directives and Markdown content
Autocompletion for Meld directives, variables, and commands
Path validation
Markdown header autocompletion in embed directives
Hover documentation for directives
Integration with meld-ast for parsing and analysis
Supported Syntax
Variable syntax: {{variable}}
Directive syntax: @embed, @import, @run, @define, etc.
Comment syntax: >> This is a comment
Markdown content with proper styling
Path and Variable Features
Path validation for imports and embeds
Variable autocompletion from imported files
Support for nested objects and arrays
URL support in import and embed directives
Installation
Visual Studio Code
From Marketplace
code --install-extension meld.meld-vscode
Or search for "Meld Scripting & Prompt Engineering" in the Extensions view.
From VSIX
code --install-extension meld-vscode-1.0.0.vsix
Or:
Open VSCode
View → Extensions (or press Ctrl+Shift+X)
Click "..." at the top of the Extensions view
Select "Install from VSIX..."
Choose the downloaded VSIX file
Cursor
From VSIX
cursor --install-extension meld-vscode-1.0.0.vsix
Or:
Open Cursor
View → Extensions (or press Ctrl+Shift+X)
Click "..." at the top of the Extensions view
Select "Install from VSIX..."
Choose the downloaded VSIX file
Usage
The extension activates automatically for .mld and .mld.md files, which are the standard file extensions for Meld scripts.
Basic Syntax Examples
>> This is a comment
@import [variable] from [path/to/file.mld]
@embed {{variable}}
@embed [[
Multi-line content here
Can include markdown formatting
]]
## Markdown headers are supported
Development
Setup
git clone https://github.com/adamavenir/meld-vscode.git
cd meld-vscode
npm install