The delimiter line specifies the characters which are interpreted by UltraEdit as word delimiter. An example string:
this+that is useless
If only the space character is specified in the delimiter line, UltraEdit will find 3 words: "this+that", "is" and "useless". If also the + character is specified as delimiter character, UltraEdit will find 4 words: "this", "that", "is" and "useless" (and word "+").
What you need is the /Marker Characters = feature. Again an example
/Marker Characters = "+-"
this is a +marker character specified string- in one line.
To specify the color of the string defined by the marker characters, write +- as string not as single characters to a color group you want.
Marker characters can only be used for a string not spreading over multiple lines. The + and - must be on the same line.
If your strings defined by the two characters are not always on a single line, use the alternative block comment as highlighter. For more details see help of UltraEdit about Syntax Highlighting.
Best regards from an UC/UE/UES for Windows user from Austria
Thanks! That works pretty well. The problem I have now is that one of the two characters also shows up places alone and if the marked string happens to be on the same line then the whole line gets marked. Is there a way to mark something like this where spaces wouldn't be included?
Here's an example, the Marker Characters are "%;". They will always mark a string that has no spaces in it. Like %dumb; and will never be like...
%dumb stuff;
The problem is that if there is a line like...
% some things %dumb;
...the whole line from the first % to the ; gets colored and I want it to ignore "% some things" and just highlight %dumb;
Is that possible?
Re: What is the delimeter line in the wordfile.txt used for?
I just figured it out I think. If I use the substring notation and set it up as...
** %
;
...that works.
Marker Charactes is definatly a good thing to know though and I really didn't get the definition of delimiters and what they are good for from the help topic the first time I read it. Your example helped. Thanks!
No, sorry. Marker characters marks everything from first character to last character or end of line. Alternative block comments will also not help here.
But you can try following:
Remove % and ; from the delimiters list, if you have specified it there.
Delete also your current Marker Characters specification.
At the color group you want, add this instead of the marker string %;.
** %
Now UltraEdit will highlight all WORDS (not strings anymore) starting with a %. But it has 1 disadvantage: "words" like %dumb will also be highlighted although there is no ; at the end of the word. Maybe this is acceptable for you. If not, there is no solution for you needs, I think.
Best regards from an UC/UE/UES for Windows user from Austria
Nope, that's fine. There would never be any words like...
%dumb
...without a ; in it. At least not that I'd be worried about. And the only other time % shows up is by itself with a space after it at the beginning of a line. So that's fine. It is highligted by itself which is little trouble for anyone. Thanks for all your help!!