Implementation of ASP (VBScript) AutoComplete and function list in EditPlus

Source: Internet
Author: User
Tags functions regular expression
vbscript| function |vbscript| function editplus is my most common asp/html/css development tool.
However, it only supports the automatic completion and function List of A/C + + system language, with no built-in ASP (VBSCRIPT) functionality. To facilitate my work, I simply implemented these two features by imitating the original configuration file.

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 the file for asp/vbscript/vb.

#CASE =n

#T =if
If ^! Then
End If
#T =while
While ^!
Wend
#T =for
for ^!,,
Next
#T =select
Select Case ^!
Case

End Select
#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 file types
In the lower right of the auto completion fill in the ASP.ACP path can be implemented ASP (VB) automatic completion

As for the function list function, write the following regular expression in functions pattern
^[\t]* (public |private)? (Sub|function|property|class) [\t].*
When looking at an ASP file with a large number of functions and procedures in the future, if you want to quickly locate a function or procedure name as VB6, press CTRL+F11 to eject the list of Functions dialog box.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.