本文整理自网络,侵删。
安装方法参考delphi的控件安装,以下是需要配置的TSynSQLSyn的属性:
1、注释的高亮显示:CommentAttri.Foreground=clGreen
2、标识符高亮显示:DelimitedIdentifierAttri.Foreground=clBlue
3、函数高亮显示:FunctionAttri.Foreground=clFuchsia
4、SQL关键字高亮显示:KeyAttri.Foregound=clBlue
5、字符串高亮显示:StringAttri.Foreground=clRed
配置OK后,需创建一个SynEdit,指定Highlighter对象,运行,将SQL复制到SynEdit中,即可。
相关阅读 >>
Delphi 时间与相关类型(2) - tdate、ttime、ttimestamp
Delphi cxdbtreelist:最简单的节点图标添加方法
更多相关阅读请进入《Delphi》频道 >>