Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for ad hoc fontlock

0 views
Skip to first unread message

Pete Forman

unread,
Sep 30, 2009, 3:57:09 AM9/30/09
to
Is there a way to highlight parts of text on an ad hoc basis? I
occasionally would like to pick out items based on just a few regexps
to help when looking at the content. The selection criteria are
temporary so I'm looking for something more lightweight than a syntax
driven mode. C-M-s isearch-forward-regexp is along the right lines
but only does the visible text and removes the highlight when the
interaction is over.

XEmacs 21.5.29
--
Pete Forman -./\.-
West Sussex, UK -./\.-
http://petef.22web.net -./\.-
petef4...@gmail.com -./\.-

Marcus Harnisch

unread,
Oct 5, 2009, 8:50:23 AM10/5/09
to
Pete Forman <petef4...@gmail.com> writes:

> Is there a way to highlight parts of text on an ad hoc basis?

> [...]


> C-M-s isearch-forward-regexp is along the right lines but only does
> the visible text and removes the highlight when the interaction is
> over.

Another workaround might be M-x re-builder.

--
Marcus

Pete Forman

unread,
Oct 6, 2009, 4:52:22 AM10/6/09
to

Thanks for that. It's better than isearch-forward-regexp though limited
to one pattern at a time. I might be able to stretch that with
sub-expressions.

0 new messages