help-gnu-emacs
[Top][All Lists]
Advanced

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

preparing colored text


From: Jonathan Epstein
Subject: preparing colored text
Date: 2 Apr 2003 09:42:34 -0800

I've read a lot about faces over the years, but there's something that
I just don't get: how do I prepare some text which is colored in a
specific way?

E.g., suppose I have the following text in my Emacs buffer (say, the
*Scratch* buffer):
  Here is some sample text colored in different ways

How can I make "Here is" red, "some sample" blue, "text" green,
"colored in" red, and "different ways" blue ?

The specific colors aren't important; an example using commonly
available faces such as:
font-lock-comment-face
font-lock-keyword-face
font-lock-warning-face

would be fine too.

Oh, I'm sort of wedded to Emacs 20 (I use 20.6.1), if there's an Emacs
20-compatible solution, that would be great.  Solutions that only work
on MS Windows would be OK too, although not optimal.

TIA,

Jonathan


reply via email to

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