Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
how to "borrow" the RDoc::RubyParser and HTMLGenerator
Phlip
1/12/2008 1:23:00 AM
Rubies:
I feel like syntax-highlighting some Ruby code, just the same way as RDoc
does.
(Put another way, I'm trying to find a way to extend RDoc.)
So if I have some Ruby, such as 'foo(42)', how do I parse than with RDoc::
RubyParser, to create a stream of tokens? And how do I route those tokens
into Generator::HTMLGenerator, and get a string of HTML
containing 'foo(42)' with the correct colors?
The source code is kind'a snarled together, and I can't find the correct
entry points!
--
Phlip
http://www.oreilly.com/catalog/9780...
^ assert_xpath
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
how to "borrow" the RDoc::RubyParser and HTMLGenerator
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password