Help with syntax highlighting?

General questions about using TextPad

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

Post Reply
Steven Isaac
Posts: 5
Joined: Fri Jul 04, 2003 5:47 am
Location: Aust

Help with syntax highlighting?

Post by Steven Isaac »

In a language syntax file (TACL) file defined with C=1 and
BracketChars=//\\|| then if FUP is defined as one of the Keywords:
/FUP / is highlighted properly while /FUP/ is not it seems that the closing / is regarded as part of the word.

Tried to place / as part of OperatorChars still did not work i.e. /FUP / is highlighted ok /FUP/ is not.
However highlighting works ok with \ and |.

Can any one help? :?
User avatar
helios
Posts: 710
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

I recommend editing your syntax file as below:

BracketChars=[]()|
OperatorChars = &,;:.'<>+-*=\/@

I hope this helps.
Helios Software Solutions
Steven Isaac
Posts: 5
Joined: Fri Jul 04, 2003 5:47 am
Location: Aust

Post by Steven Isaac »

Stephen,
Thanks a million – that got me thinking, it obviously works for you. So tried this out with a c file /int/ and that works. To cut the story short the problem was that I had “I/O� as a keyword I removed it and behold all works well now.
Again thanks been trying to fix this for a long time. :D
Post Reply