Page 1 of 1

How do you get ONE alpha/num character to Syntax highlight?

Posted: Mon Jun 16, 2003 7:28 pm
by no.cache
I can't get it to work because it will only grab the character if it is followed by a space . . . and almost all of the (OCR'd) garbage I'm trying to clean up is entangled with other text. That's the reason I need it highlightedtsk. Here are examples; if there is a way to set this up in the syntax file without my having to artificially "prepare" the document with spaces it doesn't need just to see garbage highlighted I would greatly appreciate it. Thanks:

Apt. # 156 shows up as . . . Apt. # 156
Apt.# 156 shows up as . . . Apt.# 156

but
Apt. #156 shows up as . . . Apt. #156 Image

Posted: Tue Jun 17, 2003 7:35 am
by MudGuard
Why not put the # in the Operator chars and then set color Red for those?

Posted: Tue Jun 17, 2003 1:20 pm
by no.cache
MudGuard wrote:Why not put the # in the Operator chars and then set color Red for those?
oooo thank you for that MG. Okay, I got it to work after some fiddling:

- - - - - - - - - - - - - -
BracketChars =
OperatorChars ==#
PreprocStart =
- - - - - - - - - - - - - -

Apparently the order of that = sign is important, because at first when the string read OperatorChars =#= it would give me an error message. Heads up: That = sign has to be the first symbol in the string (or so I gather).

Thank you so much MudGard. You can't imagine how helpful this is.

Skye
Image

Posted: Tue Jun 17, 2003 1:28 pm
by bbadmin
The problem is with the space in "OperatorChars = # =". Change it to "OperatorChars = #=".

Keith MacDonald
Helios Software Solutions

Posted: Tue Jun 17, 2003 1:31 pm
by no.cache
The great one speaks! ha ha

Thanks Keith.
Image