[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Font-lock is limited to text matching" is a myth

From: Stephen J. Turnbull
Subject: Re: "Font-lock is limited to text matching" is a myth
Date: Wed, 12 Aug 2009 02:06:46 +0900

Miles Bader writes:
 > "Stephen J. Turnbull" <address@hidden> writes:
 > > To me, in theory, to the extent that "fontification" means "syntax
 > > highlighting", syntax is almost entirely about position in the token
 > > stream, rather than the text composing the token (even keywords, which
 > > in many languages are a syntax error if they are in the wrong
 > > position).
 > However, being able to add properties to strings, and paste them into
 > buffer (and display them as messages, and ...) is _very_ useful.

True.  But that's just saying "copying text properties is useful *when
adding text*".  I didn't think that's what Daniel meant; AIUI, he was
referring to syntax highlighting of *existing* text in the buffer; and
that is the context where I think overlays are more natural.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]