Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* A question about Emacs hightlighting!
@ 2007-08-21  2:42 Guofu Chen
  2007-08-21  3:24 ` Daniel C. Bastos
  2007-08-21  4:26 ` Daniel Brooks
  0 siblings, 2 replies; 3+ messages in thread
From: Guofu Chen @ 2007-08-21  2:42 UTC (permalink / raw)
  To: info-gnus-english

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: A question about Emacs hightlighting!
  2007-08-21  2:42 A question about Emacs hightlighting! Guofu Chen
@ 2007-08-21  3:24 ` Daniel C. Bastos
  2007-08-21  4:26 ` Daniel Brooks
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel C. Bastos @ 2007-08-21  3:24 UTC (permalink / raw)
  To: info-gnus-english

"Guofu Chen" <gchen@mathworks.com> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: A question about Emacs hightlighting!
  2007-08-21  2:42 A question about Emacs hightlighting! Guofu Chen
  2007-08-21  3:24 ` Daniel C. Bastos
@ 2007-08-21  4:26 ` Daniel Brooks
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Brooks @ 2007-08-21  4:26 UTC (permalink / raw)
  To: info-gnus-english

"Guofu Chen" <gchen@mathworks.com> 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!

Most likely it has nothing to do with PuTTY at all, but your terminal setting. Set your TERM variable to xterm-color (or better yet, xterm-256color) and that should fix it.

db48x

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-21  4:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-21  2:42 A question about Emacs hightlighting! Guofu Chen
2007-08-21  3:24 ` Daniel C. Bastos
2007-08-21  4:26 ` Daniel Brooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).