From: Daniel Pittman <daniel@rimspace.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I make emacs rendering engine highlight a string of characters ?
Date: Sun, 21 Oct 2007 15:59:16 +1000 [thread overview]
Message-ID: <87lk9xnh3f.fsf@krosp.pangaean.net> (raw)
In-Reply-To: 1192896158.640007.107820@q5g2000prf.googlegroups.com
gnuist006@gmail.com writes:
> How can I make emacs rendering engine highlight a string of
> characters? What are the emacs primitives to highlight, italicize,
> bold-font, or such?
Other people have answers the "primitives" bit -- faces, etc -- but that
isn't quite the answer you needs.
> Is it correct that the text file is pure text and emacs renders it
> according to the settings of its rendering engine?
More or less, yes.
> So what are the primitives of this rendering engine? Where do we find
> other types of primitives? These primitives are separate from the
> lisp portion and they are probably what one would call the graphics
> part of the emacs software.
What you /want/ to look at is the "font-lock" stuff. That is, more or
less, a set of regular expressions that apply faces to text.
See the function `highlight-regexp' and friends for one-shot actions,
and the various info documentation for how the "Font Lock" facility
works.
Regards,
Daniel
--
Daniel Pittman <daniel@cybersource.com.au> Phone: 03 9621 2377
Level 4, 10 Queen St, Melbourne Web: http://www.cyber.com.au
Cybersource: Australia's Leading Linux and Open Source Solutions Company
prev parent reply other threads:[~2007-10-21 5:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-20 16:02 How can I make emacs rendering engine highlight a string of characters ? gnuist006
2007-10-20 17:21 ` How can I make emacs rendering engine highlight a string ofcharacters ? Drew Adams
2007-10-20 17:52 ` How can I make emacs rendering engine highlight a string of characters ? Bastien
2007-10-21 5:59 ` Daniel Pittman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lk9xnh3f.fsf@krosp.pangaean.net \
--to=daniel@rimspace.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.