Bug with syntax highlighting

Ideas for new features

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

Post Reply
rubem
Posts: 6
Joined: Tue Sep 14, 2004 9:09 pm

Bug with syntax highlighting

Post by rubem »

Hi,

I'm new to this forum, although I use TextPad for a very long time. I know of a very old bug in TextPad that was never corrected and seems not to be listed here: With some languages (PHP for example), if I use CTRL+End to go to the end of a file, the syntax highlight sometimes disappears. To be fair, it does not disappear completely: Comments are still in color, but the rest is gone. Then I use scroll the page up and, all of a sudden, highlighting is working again... See below for an example.

Image

Is it just me, or anybody else has this problem too?
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

A) This should probably be in the General section
B) Sometimes I get odd highlighting results when I use triple quoted strings in my python code but losing and regaining focus seems to clear the issue.
I choose to fight with a sack of angry cats.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

If I remember correctly, when you JUMP to a place in a file, Textpad starts looking at about 100 lines before the first displayed line to find information for Syntax highlighting.

So if for example the <? is more than 100 lines above the current position, it will not be found - and highlights which only occur within <? and ?> will be lost.

If you scroll up (to the point where the <? is found) and then SCROLL (not JUMP) down again, Textpad can remember that it is within the <? ?>.

I thought there was even a place in preferences where you could set the number of lines (speed/accuracy tradeoff), but can't find it - maybe it only existed in an older version.
rubem
Posts: 6
Joined: Tue Sep 14, 2004 9:09 pm

Post by rubem »

MudGuard wrote:If I remember correctly, when you JUMP to a place in a file, Textpad starts looking at about 100 lines before the first displayed line to find information for Syntax highlighting.
Hmmm, so this is not a bug, it's optimization. Makes sense.
MudGuard wrote:I thought there was even a place in preferences where you could set the number of lines (speed/accuracy tradeoff), but can't find it - maybe it only existed in an older version.
I think there is no such option, but maybe it would be a good idea to have it -- I bet most users won't notice any difference in performance.

BTW, does anybody know when Helios will include the most voted suggestions? Or will it?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Most voted suggestions is not supplied by Helios. It is done by another user like yourself, Jeffy, who ususally does a monthly update. This is the location of the most recent status:
http://www.textpad.com/forum/viewtopic.php?t=3811
Hope this was helpful.............good luck,
Bob
rubem
Posts: 6
Joined: Tue Sep 14, 2004 9:09 pm

Post by rubem »

Thanks Bob, that was useful!

But I think I didn't make myself clear, so I'll rephrase my question... Does anybody know when (or whether) the developers at Helios will release a new version of TextPad to include at least the most voted suggestions?
Post Reply