Page 1 of 1
Bug with syntax highlighting
Posted: Tue Sep 14, 2004 9:40 pm
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.
Is it just me, or anybody else has this problem too?
Posted: Wed Sep 15, 2004 4:59 am
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.
Posted: Wed Sep 15, 2004 11:31 am
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.
Posted: Wed Sep 15, 2004 6:21 pm
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?
Posted: Wed Sep 15, 2004 9:24 pm
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
Posted: Wed Sep 15, 2004 10:55 pm
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?