在这里我已经做好了一个文件块,把它贴到你的wordfile.txt文件的结尾就OK了。
对 SQL语言的分析块:
------------------------------------------------------
/L9"SQL" Nocase Line Comment = -- Block Comment On = /* Block Comment Off = */ String Chars = "' File Extensions = SQL sql
/Function String = '%[PF]*)$'
/Indent Strings = "Then"
/Unindent Strings = "End" "ELSE" "End If" "End Loop"
/C1"SQL Keywords"
add
alter
by
create
commit
constraint
default
delete
exists
from
foreign
group
having
into
insert
index
intersection
key
minus
null
nologging
where
update
unique
using
union
values
order
online
procedure
primary
rollback
replace
rowid
select
set
sysdate
table
tablespace
trigger
/C2"Functions"
avg
count
power
sum
mod
/C3"PL/SQL Keywords"
as
after
begin
before
close
cursor
declare
exit
end
exception
elsif
else
each
fetch
for
goto
into
if
loop
notfound
open
on
of
row
then
when
/C4"Operators"
+
-
*
:
=
/
%
>
<
!
||
and
between
is
in
not
or
/C5"Data Type"
number
date
char
varchar
varchar2
boolean
BLOB
rowtype
/C6"SQL goto mark"
** <<
如果你用它来开发HTML、JSP、ASP等,那也很爽啊。它不仅可以区分其中的scriptlet(小脚本)和HTML代码,对他们进行很好的着色,而且提供了几乎全部的HTML TAG和特殊字符,当你忘记的时候,很轻松就能查到。它对HTML的着色,可以做到对TAG、PROPERTY 和 VALUE 进行不同的着色。是不是很棒啊?
另外,你在这里能看到"auto correct keywords"这个功能。就是说,如果你的关键词敲错了,它可以自动帮你纠正一部分,比如fi 改成 if, system 自动写成 System, 你觉得这个功能怎么样?不错吧。的确。但是也有遇到麻烦的时候,比如你有这样的句子: Class ca = new field.getClass(); 它就把Class给写成class, 这当然是你不希望的。再如:java.sql.Connection connection = null; 它也会把小写的connection给替换成Connection(类名),这也不符合要求。这对于喜欢使用词的全称做对象实例名的弟兄们不是好事,尤其初学者,程序编译错误了,你都查不出来为什么,建议你把这个功能关掉。