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

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
calamari
Posts: 6
Joined: Sun Jun 29, 2003 4:19 am
Location: Tucson, AZ
Contact:

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

Post 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?
User avatar
helios
Posts: 710
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post 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.
Helios Software Solutions
calamari
Posts: 6
Joined: Sun Jun 29, 2003 4:19 am
Location: Tucson, AZ
Contact:

Post by calamari »

That worked great.

Thank you for your support.

calamari
Post Reply