Automatic completion and function list implementation of ASP (VBScript) in Editplus

xiaoxiao2021-03-05  27

EditPlus is my most commonly used ASP / HTML / CSS development tool.

However, it only supports auto-completion and function lists for the C / C language, and there is no two functions of built-in ASP (VBScript). For your convenience, I simply implemented these two functions by imitation of the original profile.

Create a new ASP.ACP file first.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# Title = ASP / VB; EditPlus auto-completion file v1.0 Written by Snowalk.hd.; This file is provided as a default auto-completion file for ASP / VBScript / vb. # Case = n # t = if if ^ ! Then End IF # t = while while ^! Wend # t = for for ^ !,, Next # t = select select select code # t = do do while ^! Loop # t = class class ^! END Class # t = function function ^! End function # t = Sub Sub ^! End Sub # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------

Edit >> Preferences >> Files >> Setting & Syntax

Select HTML on the right of File Types

The ASP (VB) automatic completion can be implemented in the path where the AUTO COMPLET is filled in the right.

As for the function list function, write the following regular expressions in Function Pattern

^ [/ t] * (public | private)? (SUB | FUNCTION | Property | Class) [/T].*

When viewing an ASP file with a large number of functions and procedures, if you imagine VB6, you can pop up the Function List dialog box according to the function or process name, press CTRL F11.

转载请注明原文地址:https://www.9cbs.com/read-34373.html

New Post(0)