Spid3r Language & SpiderBD Templates 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.

✨ 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
| |