Special syntax highlighting help?

General questions about using TextPad

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

Post Reply
WarnerYoung
Posts: 4
Joined: Tue Aug 03, 2004 6:52 pm

Special syntax highlighting help?

Post by WarnerYoung »

Hi,

I'm trying to get syntax highlighting working on a special file format. I can get it to work on most things, but not all. Specifically, the problems I'm running into are:

1) Keywords that are followed by a number with no intervening spaces or brackets. For example, \FC and \FC32 would both be keywords, as is \n.

2) This file format uses # both as a comment start and a directive symbol. "#FONT" is a directive, but "# This is a comment" (i.e. # followed by a space) would be a comment.

3) Some lines start with 2 time codes, like "0:01:02.03 1:04:05.06", followed by optional keywords and some text. I'd like to be able to highlight the time codes.

Is there any way to get TextPad to properly highlight these things?

TIA,
WarnerYoung
WarnerYoung
Posts: 4
Joined: Tue Aug 03, 2004 6:52 pm

Post by WarnerYoung »

Bumping.

Can no one help me with this? I've searched the forums, but I didn't see anything applicable to my problems.

TIA,
WarnerYoung
bveldkamp

Post by bveldkamp »

1) Not possible, unless you add all combinations to your syntax file.
2) Not possible, a comment takes precedence over keywords. If all your comments start on the same character position, you could add "SingleCommentCol" to your syntax file.
3) Again, not possible. Sorry.

You could add an enhancement request in the appropriate forum, or search for an existing request and give your vote for it. See here: http://www.textpad.info/forum/viewforum.php?f=12
Post Reply