Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Spid3r Formatter & Language SupportNew to Visual Studio Code? Get it now.
Spid3r Formatter & Language Support

Spid3r Formatter & Language Support

ANSNEW TECH.

| (0) | Free
Syntax highlighting, formatting, completions, diagnostics and snippets for the Spid3r programming language (.matrix) and the SpiderBD template engine (.bd.html) used by the Spid3rWeb / spid3r_ecommerce framework.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Spid3r Formatter & Language Support for Visual Studio Code

The complete VS Code extension for the Spid3r programming language (.matrix files) and the SpiderBD template engine (.bd.html) used by the Spid3rWeb / spid3r_ecommerce framework.

preview

  • 🌐 Website: inside.ansnew.com
  • 📖 Documentation: needyamin.github.io/spid3r/docs
  • 💻 Repository: github.com/needyamin/spid3r

✨ Features

Spid3r (.matrix)

  • Syntax highlighting — all 40 reserved keywords, primitive & collection types (int, float, list, map, vector, matrix, …), builtin functions, hex / octal / binary / underscore / bigint numeric literals, raw strings r"..." / r#"..."#, string interpolation {expr}, doc comments (///), operators (??, ?., ->, =>) and class-name references.
  • Formatter — canonical, idempotent re-indentation aligned with the spid3r fmt style: bracket-depth aware, trailing-whitespace trim, blank-line collapsing and a guaranteed final newline. Run with Shift+Alt+F or the Spid3r: Format Document command.
  • Completions — keywords with documentation, types, builtin signatures, the full standard-library module list after import ", and method suggestions after ..
  • Live diagnostics — unbalanced brackets, unterminated strings, with quick fixes (insert the missing bracket at end of file).
  • Outline — fn / class / interface / enum symbols in the Explorer.
  • Hover docs — documentation for builtins and keywords.
  • Snippets — main, fn, class, try, match, import, spawn and more.

SpiderBD templates (.bd.html)

  • HTML-aware highlighting with full BD directive coloring — @if / @elseif / @elif / @else / @endif, @foreach / @endforeach, @extends / @section / @endsection / @stop / @yield / @include / @csrf / @method, with Spid3r expressions inside directive parentheses and {{ … }} / {{{ … }}} output tags tokenized with the full Spid3r grammar.
  • Auto-closing tags — typing {{ inserts }}, {{{ inserts }}}; directive snippets carry their closing tag.
  • Formatter — directive-aware and HTML block-tag-aware indentation.
  • Live diagnostics — unclosed @if / @foreach / @section blocks with one-click quick fixes, stray @else / @endif warnings and unclosed {{ output tags.
  • Completions — every engine directive with documentation (trigger @) and output-tag snippets (trigger {).
  • Outline — @section blocks and @include partials.

📦 Install

From source: open this folder and run

npm install
npx vsce package   # produces spid3r-vscode-<version>.vsix

then in VS Code: Extensions view → ⋯ → Install from VSIX…

🛠 Settings

Setting Default Description
spid3r.format.indentSize 4 Spaces per indentation level
spid3r.format.insertSpaces true Spaces instead of tabs
spid3r.format.trimTrailingWhitespace true Trim trailing whitespace
spid3r.format.collapseBlankLines true Collapse 2+ blank lines into one
spid3r.diagnostics.enable true Live diagnostics
spid3r.completion.builtins true Builtin functions in completions

⌨ Commands & keys

Command Keybinding
Spid3r: Format Document Shift+Alt+F
Spid3r: Close Nearest Open Block / BD Tag Ctrl+K Ctrl+E

🧪 Example

// Hello World in Spid3r
fn main() {
    let language = "Spid3r";
    let year = 2026;
    println("Welcome to the {language} developer guide! ({year})");
    return 0;
}
@extends('layouts.app')

@section('content')
    @foreach($products in products)
        <div class="card">
            <h3>{{ product.name }}</h3>
            <p>{{{ product.description_html }}}</p>
        </div>
    @endforeach
@endsection

📄 License

MIT © needyamin

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft