Please open help page Syntax Highlighting
in help of UltraEdit. There is described what can be used in a wordfile. The sticky topic Template for syntax highlighting language wordfile
contains even more information.
It is not possible to use multiple Line Comment Num =
and Line Comment Valid Columns =
For line comments can be used:
- Line Comment = or Line Comment Num = x in combination with Line Comment Valid Columns = [a-b,c-d,e-f,g,h,i-j] and/or Line Comment Preceding Chars = [...]
- Line Comment Alt = in combination with Line Comment Valid Columns Alt = [a-b,c-d,e-f,g,h,i-j] and/or Line Comment Preceding Chars Alt = [...]
- Block Comment On = with no Block Comment Off =
- Block Comment On Alt = with no Block Comment Off Alt =
There is no Line Comment Num Alt =
and the block comment strings used for definition of line comments cannot contain a space character because of the space character is the word delimiter in *.uew files. For that reason only one line comment starting string containing one or even more spaces can be defined in a syntax highlighting wordfile.
If you want highlighted as line comment a line with three spaces at beginning of the line and also everything after column 80 with three spaces at columns 78 to 80, the following definition can be used in the wordfile in first line:
Code: Select all
/L20"TEST" Line Comment Num = 3 Line Comment Valid Columns = [1,78] String Chars = " DisableMLS File Extensions = INP
There are exactly four spaces between 3
and no other character like a colon.
The language number should be in range 1 to 20 as more languages were not supported in UltraEdit for Windows < v15.00. The language number is not relevant anymore since UE v15.00, but tools like my syntax tools macros still expect a language number in range 1 to 20 for downwards compatibility reasons.