From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9561 Path: news.gmane.org!not-for-mail From: dbastos@toledo.com (Daniel C. Bastos) Newsgroups: gmane.emacs.gnus.user Subject: Re: A question about Emacs hightlighting! Date: Mon, 20 Aug 2007 23:24:42 -0400 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187685007 16935 80.91.229.12 (21 Aug 2007 08:30:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 08:30:07 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Aug 21 10:30:05 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INP7f-0007cM-1f for gegu-info-gnus-english@m.gmane.org; Tue, 21 Aug 2007 10:29:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INP7e-0007Ta-I8 for gegu-info-gnus-english@m.gmane.org; Tue, 21 Aug 2007 04:29:58 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!feeder.erje.net!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 36 Original-NNTP-Posting-Host: q2SNWP5iY7eSCCTxJdDL6w.user.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:dy/inRJOVdyHB7SvdkQVww2ihaE= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79750 X-Mailman-Approved-At: Tue, 21 Aug 2007 04:29:49 -0400 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9561 Archived-At: "Guofu Chen" writes: > Hi, > > I am now using PuTTY in Windows XP to access Linux. Unfortuantely, I can't > see the syntax hightlighting for C++ source file. I noticed that the PuTTY > can > invoke C++ mode for the C++ source file, but I can't see the C++ syntax > hightlighting. > > Any idea? Thanks! Do you see syntax highlighting in the other modes? Here I ran M-x info-apropos and gave it ``global-font-lock-mode'' to search for. Then I found the font lock mode page. It begins 19.7 Font Lock mode =================== Font Lock mode is a minor mode, always local to a particular buffer, which highlights (or "fontifies") the buffer contents according to the syntax of the text you are editing. It can recognize comments and strings in most languages; in several languages, it can also recognize and properly highlight various other important constructs--for example, names of functions being defined or reserved keywords. Some special modes, such as Occur mode and Info mode, have completely specialized ways of assigning fonts for Font Lock mode. (...) Check this info page out which will tell you a lot about this type of customization; as a quick way to try to get the syntax highlighting, try M-x global-font-lock-mode. But if C++ is the only one that doesn't highlight, then we need to find out why not and then tell the GNU emacs to do it.