一个修改了的Editplus2的ASP自动完成模板(转)
说实话,EditPlus的自动完成功能并不怎么好用,最其码我不习惯,我更喜欢像微软开发工具(如VS)的那种自动提示的方式,所以我以前一直用Editpro,当然Ultraedit的自动提示功能更好,除了关键字外还可以记忆变量的。不过EditPlus通过精心的设计,也是可以提供一些方便的自动完成的功能,虽然不如自动提示的那么顺手,不过到也很快捷。
添加了这些自动完成功能后,也会带来很多负作用,比如你只想输入一个“IF”,但是,再打一个空格,就会自动完成为“If then end if”,真是很烦人。不过这时按一下Ctrl+Z就可以撤消自动完成的部分,而只剩下输入的部分和一个空格了。还有就是,自动完成在属性部分是不起作用的,如=“”,在“”中间输入任何东西是不会自动完成的。
下面是我从官方网站上下载的一个自动完成模板并做了一些修改:
#TITLE=ASP 3
;Author: Michael G. Bronner
;Date: 03/20/2002
;Document: ASP AutoCompletion File
;About: I created this file to assist my programming, especially with function syntax.
; However, some functionality might need to be adjusted, added, or eliminated in
; order to streamline its efficiency. I made an attempt to incorporate ALL possible
; keywors, objects, properties, methods, and events from ASP and VBScript. I
; eliminated all title-only elements from this list to eliminate redundancy.
; Please contact me at webmaster@emmgee.com if you have any questions or comments.
; Happy coding! ;->
#CASE=n
#T=while
While(^!)
Wend
#T=for
For ^!
Next
#T=select
Select Case (^!)
Case
Case Else
End Select
#T=do
Do ^!()
Loop
#T=if
If ^! Then
End if
#T=sub
Sub ^!
End Sub
#T=function
Function ^!()
End Function
#T=Abs
Abs (^!)
#T=Remove
Remove (^!)
#T=StaticObjects
StaticObjects (^!)
#T=Array
Array(^!)
#T=Asc
Asc (^!)
#T=Atn
Atn (^!)
#T=CBool
CBool (^!)
#T=CByte
CByte (^!)
#T=CCur
CCur (^!)
#T=CDate
CDate (^!)
#T=CDbl
CDbl (^!)
#T=Chr
Chr (^!)
#T=CInt
CInt (^!)
#T=CLng
CLng (^!)
#T=Cos
Cos (^!)
#T=CreateObject
CreateObject (^!)
#T=CSng
CSng (^!)
#T=CStr
CStr (^!)
#T=DateAdd
DateAdd (^!, , )
#T=DateDiff
DateDiff (^!, , )
#T=DatePart
DatePart (^!, date)
#T=DateSerial
DateSerial (^!, , )
#T=DateValue
DateValue (^!)
#T=Day
Day (^!)
#T=Eval
Eval (^!)
#T=Exp
Exp (^!)
#T=CompareMode
CompareMode^!
#T=Count
#T=Item
Item (^!)
#T=Key
Key (^!) =
#T=Add
Add (^!, )
#T=Exists
Exists (^!)
#T=Items
#T=Keys
#T=Remove
Remove (^!)
#T=VolumeName
VolumeName^!
#T=Move
Move (^!)
#T=OpenAsTextStream
OpenAsTextStream (^!, )
#T=BuildPath
BuildPath (^!, )
#T=CopyFile
CopyFile (^!, )
#T=CopyFolder
CopyFolder (^!, )
#T=CreateFolder
CreateFolder (^!)
#T=DeleteFile
DeleteFile (^!)
#T=DeleteFolder
DeleteFolder (^!)
#T=DriveExists
DriveExists (^!)
#T=FileExists
FileExists (^!)
#T=FolderExists
FolderExists (^!)
#T=GetAbsolutePathName
GetAbsolutePathName (^!)
#T=GetBaseName
GetBaseName (^!)
#T=GetDrive
GetDrive (^!)
#T=GetDriveName
GetDriveName (^!)
#T=GetExtensionName
GetExtensionName (^!)
#T=GetFile
GetFile (^!)
#T=GetFileName
GetFileName (^!)
#T=GetFolder
GetFolder (^!)
#T=GetParentFolderName
GetParentFolderName (^!)
#T=GetSpecialFolder
GetSpecialFolder (^!)
#T=GetTempName
#T=MoveFile
MoveFile (^!, )
#T=MoveFolder
MoveFolder (^!,)
#T=OpenTextFile
OpenTextFile (^!, , , )
#T=Filter
Filter (^!, )
#T=Fix
Fix (^!)
#T=Attributes
Attributes^!
#T=Copy
Copy (^!)
#T=CreateTextFile
CreateTextFile (^!)
#T=Delete
Delete^!
#T=Name
Name^!
#T=FormatCurrency
FormatCurrency (^!)
#T=FormatDateTime
FormatDateTime (^!, )
#T=FormatNumber
FormatNumber (^!)
#T=FormatPercent
FormatPercent (^!)
#T=GetLocale
#T=GetObject
GetObject (^!)
#T=GetRef
GetRef (^!)
#T=Hex
Hex ()
#T=Hour
Hour (^!)
#T=InputBox
InputBox (^!)
#T=InStr
InStr (^! , )
#T=InStrRev
InStrRev (^!, )
#T=Int
Int (^!)
#T=IsArray
IsArray (^!)
#T=IsDate
IsDate (^!)
#T=IsEmpty
IsEmpty (^!)
#T=IsNull
IsNull (^!)
#T=IsNumeric
IsNumeric (^!)
#T=IsObject
IsObject (^!)
#T=Join
Join (^!)
#T=LBound
LBound (^!)
#T=LCase
LCase (^!)
#T=Left
Left (^!, )
#T=Len
Len (^!)
#T=LoadPicture
LoadPicture (^!)
#T=Log
Log (^!)
#T=LTrim
LTrim (^!)
#T=Mid
Mid (^!, )
#T=Minute
Minute (^!)
#T=Month
Month (^!)
#T=MonthName
MonthName (^!)
#T=MsgBox
MsgBox (^!)
#T=Oct
Oct (^!)
#T=Replace
Replace (^!, , )
#T=BinaryRead
BinaryRead (^!)
#T=Cookies
Cookies (^!)
#T=Form
Form (^!)
#T=QueryString
QueryString (^!)
#T=ServerVariables
ServerVariables (^!)
#T=AddHeader
AddHeader (^!, )
#T=AppendToLog
AppendToLog (^!)
#T=BinaryWrite
BinaryWrite (^!)
#T=Buffer
Buffer^!
#T=ChacheControl
CacheControl^!
#T=ContentType
Charset (^!)
#T=End
#T=Expires
Expires^!
#T=ExpiresAbsolute
ExpiresAbsolute^!
#T=Flush
#T=IsClientConnected
IsClientConnected
#T=Pics
Pics (^!)
#T=Redirect
Redirect ^!
#T=Status
Status = ^!
#T=RGB
RGB (^!, , )
#T=Right
Right (^!, )
#T=Rnd
Rnd^!
#T=Round
Round (^!)
#T=RTrim
RTrim (^!)
#T=Second
Second (^!)
#T=CodePage
CodePage^!
#T=Contents
Contents (^!)
#T=LCID
LCID^!
#T=Timeout
Timeout^!
#T=Execute
Execute (^!)
#T=HTMLEncode
HTMLEncode (^!)
#T=MapPath
MapPath (^!)
#T=ScriptTimeout
ScriptTimeout^!
#T=Transfer
Transfer (^!)
#T=URLEncode
URLEncode (^!)
#T=SetLocale
SetLocale (^!)
#T=Sgn
Sgn (^!)
#T=Sin
Sin (^!)
#T=Space
Space (^!)
#T=Split
Split (^!)
#T=Sqr
Sqr (^!)
#T=StrComp
StrComp (^!, )
#T=String
String (^!, )
#T=StrReverse
StrReverse (^!)
#T=Tan
Tan (^!)
#T=Read
Read (^!)
#T=Skip
Skip (^!)
#T=Write
Write (^!)
#T=WriteLine
WriteLine (^!)
#T=WriteBlankLines
WriteBlankLines (^!)
#T=TimeSerial
TimeSerial(^!,, )
#T=TimeValue
TimeValue (^!)
#T=Trim
Trim (^!)
#T=TypeName
TypeName (^!)
#T=UBound
UBound (^!)
#T=UCase
UCase (^!)
#T=VarType
VarType (^!)
#T=WeekDay
Weekday (^!)
#T=WeekDayName
WeekdayName (^!)
#T=Year
Year (^!)
;下面是YH自己增加的自动完成,你可以添加更多自己喜欢的东西。
#T=asptag
<%
^!
%>
#T=aspout
<%=^!%>
#T=aspand
&^!&