all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Syntax Highlighting in Ruby only handles comments and quotes
@ 2010-08-20 20:10 eric_powell
  2010-08-21  7:08 ` Oleksandr Gavenko
  0 siblings, 1 reply; 3+ messages in thread
From: eric_powell @ 2010-08-20 20:10 UTC (permalink / raw)
  To: Help-gnu-emacs


I'm pretty new to emacs and really enjoy the syntax highlighting in CC mode
(C++) and cperl-mode, but when I'm coding in Ruby the only things that get
colored are quotes and comments.  Is this all that it's supposed to do?  No
function highlighting (e.g. 'def') or flow control (e.g. if, for, while)?

I have ruby-mode.el in my emacs dir and I'm pretty sure it's working because
I can do M-x ruby-mode.  I've also done M-x font-lock-mode, but that just
gets the comments and quotations.

Please note that I used cperl and ccmode on a different emacs install, so
maybe there's something else that I'm doing wrong on this install.   

Also, I should mention that I'm using Xemacs on CygWin on Windows 7 64-bit,
not sure if that makes any difference.

Let me know if there is any other information I can provide to help debug if
in fact this is not the proper functioning.

Thanks in advance!  This community is one of the reasons i love emacs :)
-eric
-- 
View this message in context: http://old.nabble.com/Syntax-Highlighting-in-Ruby-only-handles-comments-and-quotes-tp29495319p29495319.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




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

* Re: Syntax Highlighting in Ruby only handles comments and quotes
       [not found] <mailman.9.1282335012.14034.help-gnu-emacs@gnu.org>
@ 2010-08-20 21:38 ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2010-08-20 21:38 UTC (permalink / raw)
  To: help-gnu-emacs

> Also, I should mention that I'm using Xemacs on CygWin on Windows 7 64-bit,
> not sure if that makes any difference.

Maybe XEmacs is not supported by your version of ruby-mode.el.
You could try it with Emacs instead.


        Stefan


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

* Re: Syntax Highlighting in Ruby only handles comments and quotes
  2010-08-20 20:10 Syntax Highlighting in Ruby only handles comments and quotes eric_powell
@ 2010-08-21  7:08 ` Oleksandr Gavenko
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr Gavenko @ 2010-08-21  7:08 UTC (permalink / raw)
  To: help-gnu-emacs

On 20.08.2010 23:10, eric_powell wrote:
>
> I'm pretty new to emacs and really enjoy the syntax highlighting in CC mode
> (C++) and cperl-mode, but when I'm coding in Ruby the only things that get
> colored are quotes and comments.  Is this all that it's supposed to do?  No
> function highlighting (e.g. 'def') or flow control (e.g. if, for, while)?
>
> I have ruby-mode.el in my emacs dir and I'm pretty sure it's working because
> I can do M-x ruby-mode.  I've also done M-x font-lock-mode, but that just
> gets the comments and quotations.
>
> Also, I should mention that I'm using Xemacs on CygWin on Windows 7 64-bit,
> not sure if that makes any difference.
>
This list intended for GNU Emacs, also read

http://www.emacswiki.org/emacs/RubyMode

It’s included in Emacs 23 and is also available via ELPA. However, those 
copies have no
guarantees of backwards-compatibility, so if you’re having trouble with 
it on an older Emacs
version or XEmacs, you can use the copy that’s included with Ruby, which 
attempts to be
highly compatible.

GNU Emacs 23.2.1 included in latest Cygwin 1.7.6




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

end of thread, other threads:[~2010-08-21  7:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 20:10 Syntax Highlighting in Ruby only handles comments and quotes eric_powell
2010-08-21  7:08 ` Oleksandr Gavenko
     [not found] <mailman.9.1282335012.14034.help-gnu-emacs@gnu.org>
2010-08-20 21:38 ` Stefan Monnier

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.