comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » xemacs syntax highlighting problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: xemacs syntax highlighting problem [message #33693 is a reply to message #33575] Fri, 17 January 2003 07:06 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
"J. Fischer" wrote:
>
> Paul van Delst wrote:
>> Why can't the fontification be based on a "context" buffer (dunno what the proper term
>> would be). That is, you update syntax highlighting based on the immediate context of what
>> surrounds the line in question? I have no idea how one would specify the extent of the
>> context, though.
>
> This wouldn't really help to improve efficiency.

why not?

>> The efficiency issue Carsten mentions can be a real bugger. I use nedit and it checks the
>> entire buffer every keystroke. Not usually a problem unless you have a lot of lines of
>> code and you type in a string near the top of the file. The first use of ' causes all the
>> following 's to be redefined and the character string syntax highlighting "flips". The
>> closing ' in the line I'm typing corrects the situation but it can take a couple of
>> seconds while nedit cogitates over the matter. Can be a real pain in the rear.
>
> There is nothing wrong about checking the entire buffer. Actually, it is
> the only way to get a efficient (almost) real-time and _proper_ syntax
> highlighting.
>
> This puts a higher responsibility on the patterns design, though. What
> you describe is a badly designed patterns set.

Most likely - seeing as I futzed around with the standard nedit patterns when I started
using it. The nedit documentation is a bit sketchy on examples which is the only way I can
make sense out of the patterns used. I probably buggered up a perfectly designed pattern.

> Hope you got the point.

Um, I think so.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7274
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: DataMiner
Next Topic: Re: Looking for a data analysis package - need advise

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:59:50 PDT 2025

Total time taken to generate the page: 0.00377 seconds