← All extensions

ASP Classic

v0.1.0 · by Hendry Muda Rangkuti · added 3 November 2026

ASP Classic (VBScript) syntax highlighting for Zed

Languages

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for ASP Classic. The extension's id is asp-classic.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

ASP Classic for Zed

ASP Classic (VBScript) language support for the Zed editor.

Features

  • Syntax Highlighting untuk file .asp dan .asa
  • Code Snippets untuk konstruksi VBScript yang umum
  • Mendukung:
    • <% ... %> — ASP code block
    • <%= ... %> — Inline expression
    • <%@ ... %> — ASP directive
    • <!--#include file="..." --> — Server-side includes
    • Keyword VBScript lengkap (If/For/Sub/Function/Class dll.)
    • Built-in objects: Response, Request, Server, Session, Application
    • Built-in functions VBScript (Trim, Left, Mid, DateAdd, dll.)
    • HTML injection (HTML di luar ASP tags dihighlight sebagai HTML)

Instalasi

Sebagai Dev Extension (local)

  1. Clone kedua repo ini:

    git clone https://github.com/your-username/tree-sitter-asp-classic
    git clone https://github.com/your-username/zed-asp-classic
    
  2. Build tree-sitter grammar:

    cd tree-sitter-asp-classic
    npm install
    npx tree-sitter generate
    
  3. Di Zed, buka Command Palette (Ctrl+Shift+P) → zed: install dev extension

  4. Pilih folder zed-asp-classic

Via Zed Extension Registry (setelah publish)

Buka Extensions (Ctrl+Shift+X) → cari "ASP Classic" → Install.

Snippets

PrefixDeskripsi
aspASP code block <% %>
rwResponse.Write
rwiInline <%= %>
ifIf...Then...End If
ifeIf...Else...End If
forFor...Next
foreachFor Each...In...Next
whileWhile...Wend
doDo While...Loop
subSub declaration
funcFunction declaration
selectSelect Case
oernOn Error Resume Next
coServer.CreateObject
rfRequest.Form
rqsRequest.QueryString
adoconnADODB.Connection block
adorecADODB.Recordset loop
aspheadStandard ASP page header

Struktur Repo

zed-asp-classic/
├── extension.toml          # Zed extension manifest
└── languages/
    └── asp-classic/
        ├── config.toml     # Language config (.asp, .asa)
        ├── highlights.scm  # Syntax highlight queries
        └── snippets.json   # Code snippets

tree-sitter-asp-classic/    # Repo grammar terpisah
├── grammar.js              # Tree-sitter grammar definition
├── package.json
└── queries/
    ├── highlights.scm
    ├── injections.scm      # HTML injection untuk non-ASP content
    └── locals.scm

Cara Publish ke Zed Registry

  1. Push tree-sitter-asp-classic ke GitHub
  2. Push zed-asp-classic ke GitHub
  3. Update extension.toml dengan rev dari commit SHA grammar:
    git -C tree-sitter-asp-classic rev-parse HEAD
    
  4. Fork zed-industries/extensions
  5. Tambahkan sebagai submodule:
    git submodule add https://github.com/your-username/zed-asp-classic.git extensions/asp-classic
    
  6. Buat PR ke zed-industries/extensions

License

MIT