Page 1 of 1

BUG? Dollar sign ($) doesn't syntax highlight

Posted: Fri Sep 26, 2003 8:29 pm
by calamari
Hi,

I made a Microsoft Basic syn file, but none of the keywords that have a $ sign highlight.. for example MID$, RIGHT$, CHR$, etc. If I change the keyword to just MID, etc, it highlights that part but looks stupid. Also if I add a keyword of $ that highlights all the $'s but again is dumb looking. I have experimented with various combos (with/without $) in InitKeyWordChars and KeyWordChars but nothing seems to help, and those seem to be undocumented as well.

Any suggestions on how to work around this annoying bug?

Jeff

Edit: not only $.. if there is # or & it doesn't highlight either. Also doesn't highlight a two word string such as PRINT # (example: PRINT #1, A$)

p.s. Dev C++ has an option for an underline cursor. Perhaps you can rip the code from there and put it in Textpad so I can have a halfway decent cursor instead of this lame vertical bar?

Posted: Tue Sep 30, 2003 6:01 pm
by helios
Please try implementing the following procedure in TextPad:

From the Configure menu choose:

1. Preferences
2. "+" sign next to Document classes
3. "+" sign next to the specific document class
4. Syntax
5. Add $ to the list of "Other characters in words"
6. Click Apply / OK.

Posted: Thu Oct 16, 2003 9:29 pm
by calamari
That worked great.

Thank you for your support.

calamari