让UltraEdit32高亮显示Delphi代码

将其添加到UltraEdit安装路径下的 WORDFILE.TXT 文件的结尾即可。再 高级–>配置–>编辑器显示–>语法高亮–>选择词语列表的完整路径
注意查看WORDFILE.TXT最后代码是 /L 什么,比如最后是/L11,所以把下面代码修改为 /L12 ,以下代码已经测试能用.

/L12"Dephi" Line Comment = // Block Comment On = { Block Comment Off = } Block Comment On Alt = (* Block Comment Off Alt = *) Escape Char = \ String Chars = ‘ Nocase File Extensions = PAS DPR DPK DFM COD INC
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"’<> , .?
/Function String = "%[a-zA-Z_]* ^([a-zA-Z_]+^)(*)[~;]"
/Function String 1 = "%[a-zA-Z_]*.^([a-zA-Z_]+^)(*)[~;]"
/Indent Strings = "begin"
/Unindent Strings = "end"
/C1"Keywords"
absolute abstract and array as asm assembler automated
begin break
case cdecl class const constructor contains continue
default delete destructor dispid dispinterface div do downto dynamic
else end except explicit export exports external
far file finalization finally for forward function
goto
if implementation implements in inherited initialization inline interface is
label library
message mod
near nil nodefault not
object of or out overload override
package packed pascal private procedure program property protected public published
raise read readonly record register reintroduce repeat requires resourcestring
safecall set shl shr stdcall stored string
then threadvar to try type
unit until uses
var virtual
while with write writeonly
xor
/C4"Operators"
+
-
*
=
// /
\
:
%
&
>
<
^
!
|
;
,
.
‘
"
(
)
$
[
]
@
// #
// $
~

解读(我自己认为是这样的):

Comment =注释符号

/C1″Keywords” 下面列出一些关键字,其中按字母顺序排列,不能错,错了就无效,自己可以添加,例如添加single和integer变成:inline integer interface is 和safecall set shl shr single stdcall stored string