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?
Bug with syntax highlighting
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
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.
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.
Hmmm, so this is not a bug, it's optimization. Makes sense.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.
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.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.
BTW, does anybody know when Helios will include the most voted suggestions? Or will it?
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
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
http://www.textpad.com/forum/viewtopic.php?t=3811
Hope this was helpful.............good luck,
Bob
Bob