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
Special syntax highlighting help?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 4
- Joined: Tue Aug 03, 2004 6:52 pm
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
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