General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , Bob Hansen , MudGuard
lklawrie
Posts: 52 Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:
Post
by lklawrie » Sun May 02, 2010 4:28 pm
My syntax highlights our "data dictionary" language where the keyword is followed by a comma and several fields.
Syntax highlighting works fine in V4.7.3 but in later versions, (I looked at V5.1 and V5.3), the keywords that are followed by the comma are not highlighted. Ones sitting in the middle of comments or phrases are.
E.g.
Version, (is not highlighted in Textpad)
A1; \field Version Identifier (Version is highlighted).
Is this a known bug with a work around?
If I add a space after the keyword and before the , -- it is, of course, highlighted.
Linda
Bob Hansen
Posts: 1516 Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:
Post
by Bob Hansen » Mon May 03, 2010 5:13 pm
I wouldn't call is a bug as much as a shortcoming. It is well known (but not well received).
The syntax highlighter uses "space" as the delimiter.
Not able to use any type of RegEx style filters in the current syntax processor.
Hope this was helpful.............good luck,
Bob
lklawrie
Posts: 52 Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:
Post
by lklawrie » Mon May 03, 2010 6:39 pm
Well, it used to work properly. But not anymore?
I have proof from my 4.7.3. I guess I could regress.
Linda
lklawrie
Posts: 52 Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:
Post
by lklawrie » Wed May 05, 2010 1:57 pm
Can someone tell me which version this bug crept in?
Is there any consideration of fixing it?
Linda
lklawrie
Posts: 52 Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:
Post
by lklawrie » Thu May 13, 2010 8:38 pm
Sorry, Bob but you were incorrect.
I found that a couple of my main keywords had inadvertently slipped in commas and that's why it wasn't working.
So... TextPad does not need space as a delimiter.
No bug. Just user error.
Linda
Bob Hansen
Posts: 1516 Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:
Post
by Bob Hansen » Thu May 13, 2010 11:04 pm
It is possible that the commas, other chars, had been added as additional characters on the configuration page for Class/Syntax definition.
Hope this was helpful.............good luck,
Bob