在UltraEdit中为SQR配置代码着色

来源:互联网 发布:windows开机更新失败 编辑:程序博客网 时间:2024/06/05 05:30

可以在UltraEdit(我用的版本是ue17.00.0.1025)中为SQR配置代码着色,首先在UltraEdit中找到高级-->配置-->编辑器现实-->语法高亮,如下图:

看到“文档的完整目录名称”里指定的目录,然后在该目录下建立sqr.uew空文件,将如下代码copy到文件中,保存即可:

--BEGIN FILE--

/L10"SQR" Nocase Line Comment = ! Block Comment On = ! Block Comment Off = ! String Chars = ' File Extensions = SQR SQC SQH sqr sqc sqh
/Function String = "Begin-Proc*"
/Delimiters = ~!@%^&*()+=/\/{}[]:;"'<> , .?
/Marker Characters = "{}"

/C1"Paragraph Boundry"
begin-footing begin-heading
begin-procedure begin-program begin-report begin-setup
end-footing end-heading
end-procedure end-program end-report end-setup

/C2"SQL & Declare"
alter-color-map alter-conection alter-locale alter-printer alter-report
begin-document begin-execute begin-select begin-sql
declare-chart declare-image declare-color-map
declare-conection declare-layout declare-printer declare-report
declare-procedure
declare-toc
declare-variable
end-declare
end-document
end-select exit-select end-sql
load-lookup

/C3"Pre-Defined Vars"
#current-column #current-date #current-line
#end-file
#page-count
#return-status
#sql-count #sql-status #sqr-max-columns #sqr-max-lines
#sqr-pid
#sqr-toc-level #sqr-toc-page
$sqr-database {sqr-database}
$sqr-dbcs {sqr-dbcs}
$sqr-encoding {sqr-encoding}
$sqr-encoding-console {sqr-encoding-console}
$sqr-encoding-database {sqr-encoding-database}
$sqr-encoding-file-input {sqr-encoding-file-input}
$sqr-encoding-file-output {sqr-encoding-file-output}
$sqr-encoding-report-input {sqr-encoding-report-input}
$sqr-encoding-report-output {sqr-encoding-report-output}
$sqr-encoding-source {sqr-encoding-source}
$sql-error
$sqr-hostname {sqr-hostname}
$sqr-locale
$sqr-platform {sqr-platform}
$sqr-program
$sqr-report
$sqr-toc-text
$sqr-ver
$username

/C4"Compiler Directive"
{}
** debug #debug
#define
#else #end-if #endif
#if #ifdef #ifndef #include

/C5"Command"
add array-add array-divide array-multiply array-subtract ask
break
call clear-array close columns commit concat connect create-array create-color-palette
date-time display divide do dollar-symbol
else encode end-evaluate end-if end-while evaluate execute extract
find
get get-color goto graphic
if input
last-page let lookup lowercase
mbtosbs money-symbol move multiply
new-page new-report next-column next-listing no-formfeed
open
page-number page-size position print print-bar-code print-chart print-direct
print-image printer-deinit printer-init put
read rollback
security set-color set-delay-print set-generations set-levels set-members
sbtombs show stop string subtract
toc-entry
unstring uppercase use use-column use-printer-type use-procedure use-report
while write

/C6"Command Syntax"
3d-effects
after-bold after-page after-report after-toc and as at-end
background batch-mode beep before-bold before-page before-report before-toc blink
bold border bottom-margin box break by
caption center char char-size char-width chars-inch chart-size checksum cl clear-line
clear-screen color color-palette cs
color_
data-array data-array-column-count data-array-column-labels data-array-row-count data-labels
date date-edit-mask date-seperator day-of-week-case day-of-week-full day-of-week-short
decimal decimal-seperator default-numeric delay distinct dot-leader
edit-option-ad edit-option-am edit-option-bc edit-option-na edit-option-pm
encoding entry erase-page extent
field fill fixed fixed_nolf float font font-style font-type footing footing-size
foreground for-append for-reading for-reports for-tocs for-writing format formfeed from
goto-top group
having heading heading-size height horz-line
image-size in indentation init-string input-date-edit-mask insert integer into
item-color item-size
key
layout left-margin legend legend-placement legend-presentation legend-title level
line-height line-size line-width lines-inch local locale loops
max-columns max-lines maxlen money money-edit-mask money-sign money-sign-location
months-case months-full months-short
name need newline newpage no-advance nolf noline noprompt normal not nowait number number-edit-mask
on-error or order orientation
page-depth paper-size pie-segment-explode pie-segment-percent-display
pie-segment-quantity-display pitch point-markers point-size printer printer-type
quiet
record reset-string return_value reverse right-margin rows
select size skip skiplines sort source sqr-database sqr-platform
startup-file status stop sub-title symbol-set system
table text thousand-seperator time-seperator times title to toc top-margin type
underline update using
value vary vert-line
wait warn when when-other where with
x-axis-grid x-axis-label x-axis-major-increment x-axis-major-tick-marks
x-axis-max-value x-axis-min-value x-axis-minor-increment x-axis-minor-tick-marks
x-axis-rotate x-axis-scale x-axis-tick-mark-placement
xor
y-axis-grid y-axis-label y-axis-major-increment y-axis-major-tick-marks
y-axis-max-value y-axis-min-value y-axis-minor-increment y-axis-minor-tick-marks
y-axis-scale y-axis-tick-mark-placement
y2-type y2-data-array y2-data-array-row-count y2-data-array-column-count
y2-data-array-column-labels y2-axis-color-palette
y2-axis-label y2-axis-major-increment y2-axis-major-tick-marks
y2-axis-max-value y2-axis-min-value y2-axis-minor-increment y2-axis-minor-tick-marks
y2-axis-scale

/C7"Expressions"
abs acos asin atan
array ascii asciic
ceil cos cosh
chr cond
deg
delete
dateadd datediff datenow datetostr
e10 exp
edit
exists
floor
getenv
instr instrb isblank isnull
log log10
length lengthb lengthp lengtht lower lpad ltrim
mod
nvl
power
rad round
range replace roman rpad rtrim
rename
sign sin sinh sqrt
substr substrb substrp substrt
strtodate
tan tanh trunc
to_char to_multi_byte to_number to_single_byte transformtranslate
unicode upper
wrapdepth

/C8"User-Defined Vars"
** $ #

--END FILE--