Re: [MacRuby-devel] syntax highlighting

2011-01-10 Thread Grégoire Lejeune
I use Fragaria (https://github.com/mugginsoft/Fragaria) in Leonhard (https://github.com/glejeune/Leonhard) Greg Envoyé de mon iPhone Le 10 janv. 2011 à 19:00, Joel Reymont a écrit : > Is there anything I can piggyback on to implement syntax highlighting in a > Cocoa editing window? > > Is t

Re: [MacRuby-devel] syntax highlighting

2011-01-10 Thread Laurent Sansonetti
Hi Joel, For simplicity, I recommend to use the ripper extension for that. It has a lexer API. I don't know if there is sample code available, but the API itself isn't very difficult to understand and use. Look for the Ripper::Lexer class. Based on the returned tokens, you can then colorize you

[MacRuby-devel] syntax highlighting

2011-01-10 Thread Joel Reymont
Is there anything I can piggyback on to implement syntax highlighting in a Cocoa editing window? Is there some Ruby lexing code, for example, that I can reuse? Thanks, Joel --- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont __