From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bijan Soleymani Newsgroups: gmane.emacs.help Subject: Re: preparing colored text Date: 02 Apr 2003 14:18:03 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87el4kbtec.fsf@server.crasseux.com> References: <27e4d2e8.0304020942.52ae37ad@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049310947 23010 80.91.224.249 (2 Apr 2003 19:15:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2003 19:15:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 21:15:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190ni3-0005yL-00 for ; Wed, 02 Apr 2003 21:15:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190ndn-0004Xr-07 for gnu-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2003 14:11:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.201.123.149 Original-X-Complaints-To: abuse@videotron.ca Original-X-Trace: wagner.videotron.net 1049310452 24.201.123.149 (Wed, 02 Apr 2003 14:07:32 EST) Original-NNTP-Posting-Date: Wed, 02 Apr 2003 14:07:32 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:111613 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8112 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8112 jaepstein_63@yahoo.com (Jonathan Epstein) writes: > 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 ? If your version of emacs has it, you should probably try enriched-mode. M-x enriched mode Then select the text you want to be red. Then from the menu go in Edit -> Text Properties -> Foreground Color and enter red. Repeat for all other colors. Hope that helps, Bijan