兄弟们,editplus的asp自动完成文件来了!!!!!!

fxbird 2003-08-24 10:44:34
把下面的文件保存成acp格式的文件,然后指定为asp文件的自动完成文件即可.可以根据需要自定义完成内容。使用时只要输入关键字,加上一个空格,即可自动完成,如果想自定义,可以这样:
#T=关键字
自动完成的内容
^!代表自动完成后光标出现的位置.
例如,想输入“if”加空格后自动输出if () then,并且让光标在括号里,就可以这样定义:
#T=if
if (^!) then
怎么样,是不是很简单?赶快试试吧。
asphtml.acp

#TITLE=WML 1.1
; Version 1.0
; EditPlus auto-completion file
#CASE=n
; WML Elements
#T=?xml
<?xml version="1.0"?>
#T=DOCTYPE
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
#T=xml:lang
xml:lang="^!"
#T=!--
<!--^!-->
#T=wml
<wml>
^!
</wml>
#T=access
<access/>
#T=card
<card title="^!">

</card>
#T=button
<input type="button" name="^!" onclick="javascript:">
#T=submit
<input type="submit" value="^!">
#T=text
<input type="text" name="^!" value="">
#T=select
<select name="^!">
<option value="^!"></option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
#T=do
do while
^!
loop
#T=head
<head>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="expires" content="0">
</head>
#T=go
<go href="^!"/>
#T=meta
<meta name="^!" content=""/>
#T=onevent
<onevent type="^!">

</onevent>
#T=noop
<noop/>
#T=prev
<prev/>
#T=postfield
<postfield name="^!" value=""/>
#T=refresh
<refresh>
^!
</refresh>
#T=setvar
<setvar name="^!" value=""/>
#T=template
<template>
^!
</template>
#T=timer
<timer value="^!"/>
; WML Attributes
#T=accept-charset
accept-charset="^!"
#T=columns
columns="^!"
#T=content
content="^!"
#T=class
class="^!"
#T=domain
domain="^!"
#T=forua
forua="^!"
#T=anchor
<a href="javascript:^!" ></a>
#T=http-equiv
http-equiv="^!"
#T=id
id="^!"
#T=label
label="^!"
#T=method
method="^!"
#T=name
name="^!"
#T=newcontext
newcontext="^!"
#T=onenterbackward
onenterbackward=^!"
#T=onenterfoward
onenterfoward=^!"
#T=ontimer
ontimer="^!"
#T=ordered
ordered="^!"
#T=path
path="^!"
#T=scheme
scheme="^!"
#T=sendreferer
sendreferer="^!"
#T=src
src="^!"
#T=Script
<script language="JavaScript">
<!--
^!
//-->
</script>
#T=onError
On Error Resume Next
#T=title
title="^!"
#T=type
type="^!"
#T=value
value="^!"

#T=Language
<%@ Language=VBScript %>
#T=velseif
if ^! then

Else If ( ) then

Else

End if
#T=vIf
if ^! then
^!
end if
#T=velse
if ^! then

else

end if
#T=Option
<option value="^!"></option>
#T=each
For Each ^! In ( )
"asp code go here
Next

#T=vcase
Select Case (^!)
Case

Case

END Select

#T=until
Do
"asp code go here
Loop Until (^!)

#T=While
While (^!)

Wend
#T=Clear
Response.Clear

#T=End
Response.End

#T=Flush
Response.Flush

#T=Red
Response.Redirect("^!")

#T=Write
Response.Write("^!")
#T=Buffer
<%Response.Buffer="true"%>
#T=Cmm
<!--#INCLUDE FILE= "../Cmm/global/adovbs.inc"-->
<!--#INCLUDE FILE= "../Cmm/global/cmm.inc"-->
#T=Output
<%=^! %>
#T=Request
if Request("^!")<>"" then
=Request("^!")
end if
#T=Sesi
Session("^!")
#T=Cnn
Set cnn=Server.CreateObject("ADODB.Connection")
cnn.Open STR_INTRANET
sql="^!"
Set ConnObj=nothing
#T=Rs
Set RSObj^! = Server.CreateObject("ADODB.Recordset")
#T=eExecute
Server.Execute("^!")
#T=Open
RSObj.Open sql,ConnObj,adopenstatic
if not RSObj.eof then
while not RSObj.eof
^!
wend
end if
RSObj.close
#T=Include
<!--#include file="../include/^!"-->
#T=ASP
<% ^! %>
#T=Table
<table align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="^!">
<tr align="center">
<td align="center">^!</td>
</tr>
</table>
#T=Tr
<tr align="center">
</tr>
#T=Td
<td align="center">^!</td>
#T=image
<input type="image" src="^!" alt="">
#T=frame
<frameset cols="^!" rows=""></frameset>
#T=src
<img src="^!" alt="" width="" height="" border="0">
#T=Form
<form language="javascript" name="^!" method="" action="" onsubmit="return isok()">
</form>
#T=func
function ^!()
{

}
#T=Link
<link rel="stylesheet" href="^!.css">
#T=Hidden
<input type="hidden" name="" value="">
#T=Style
<style type="text/css">
<!--
.^!{
font-family:
color:
font-size:
font-weight:
text-decoration:
}
-->
</style>
#T=Location
document.location="^!"
#T=alert
alert("^!");
#T=Font
<FONT FACE="^!" color="" size="">
</FONT>
#T=Window
var myfile="^!";
var mywind=window.open(myfile,"Title" , "width=600, height=250 , scrollbars=yes, screenX=0,
screenY=0, left=100, top=200");
#T=body
<body bgcolor="^!">
</body>
#T=Html
<html>
</html>
#T=Div
<div></div>
#T=for
for ^!
^!
next
#T=query
request.querystring("^!")
#T=wcook
response.cookies("^!")
#T=rcook
request.cookies("^!")
#T=href
<a href="^!"></a>
#T=rsclose
#T=.form
request.form("^!")
#T=sub
sub ^!()

end sub
#T=function
function ^!()

end function
#T=isok
function isok()
{
^!
}
#T=rsclose
if isobject(rs) then
if rs.state=0 then
set rs=nothing
elseif rs.state=1 then
rs.close
set rs=nothing
end if
end if
if isobject(cnn) then
if cnn.state=0 then
set cnn=nothing
elseif cnn.state=1 then
cnn.close
set cnn=nothing
end if
end if
#T=hlo
alert("hello");
#T=rsexe
set rs=cnn.execute(sql,,adcmdtext)
#T=cnnexe
cnn.execute sql,,adcmdtext
#T=rsopen
rs.open sql,cnn,1,2,adcmdtext
#T=opentbl
call open_tbl(rs,cnn,"^!","","","","")
#T=split
split(^!,"")
#T=ubound
ubound(^!)
#T=repl
document.location.replace("^!");
#T=jif
if (^!)
#T=jelse
if (^!)

else

#
...全文
164 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
fxbird 2003-08-28
  • 打赏
  • 举报
回复
没人跟贴?
makay 2003-08-26
  • 打赏
  • 举报
回复
收藏!
up
fxbird 2003-08-26
  • 打赏
  • 举报
回复
to aiailove:
1.工具,参数选择,设置和语法,添加扩展名为asp的文件,并填写好描述,指定自动完成文件。
2.不是包含文件,它也是自动完成的内容。
pp4u 2003-08-26
  • 打赏
  • 举报
回复
强烈支持。
aiailove 2003-08-24
  • 打赏
  • 举报
回复
请问 把下面的文件保存成acp格式的文件,然后指定为asp文件的自动完成文件即可;
1这句话中的指定ASP文件的自动完成文件如何操作
2里面有一些INCLUDE文件,这些文件在那里啊
eafin 2003-08-24
  • 打赏
  • 举报
回复
不错!偶正在使用test中...

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧