ASP Classic
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
.aspdan.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)
-
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 -
Build tree-sitter grammar:
cd tree-sitter-asp-classic npm install npx tree-sitter generate -
Di Zed, buka Command Palette (
Ctrl+Shift+P) →zed: install dev extension -
Pilih folder
zed-asp-classic
Via Zed Extension Registry (setelah publish)
Buka Extensions (Ctrl+Shift+X) → cari "ASP Classic" → Install.
Snippets
| Prefix | Deskripsi |
|---|---|
asp | ASP code block <% %> |
rw | Response.Write |
rwi | Inline <%= %> |
if | If...Then...End If |
ife | If...Else...End If |
for | For...Next |
foreach | For Each...In...Next |
while | While...Wend |
do | Do While...Loop |
sub | Sub declaration |
func | Function declaration |
select | Select Case |
oern | On Error Resume Next |
co | Server.CreateObject |
rf | Request.Form |
rqs | Request.QueryString |
adoconn | ADODB.Connection block |
adorec | ADODB.Recordset loop |
asphead | Standard 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
- Push
tree-sitter-asp-classicke GitHub - Push
zed-asp-classicke GitHub - Update
extension.tomldenganrevdari commit SHA grammar:git -C tree-sitter-asp-classic rev-parse HEAD - Fork zed-industries/extensions
- Tambahkan sebagai submodule:
git submodule add https://github.com/your-username/zed-asp-classic.git extensions/asp-classic - Buat PR ke zed-industries/extensions
License
MIT