[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Pretty-printing Ruby code to HTML

Tomasz Wegrzanowski

8/10/2006 12:29:00 PM

Hello,

I need to pretty print some Ruby code into HTML.
Any pointers :-) ?

--
Tomasz Wegrzanowski [ http://t-a-w.blo... ]

6 Answers

Martin DeMello

8/10/2006 12:41:00 PM

0

On 8/10/06, Tomasz Wegrzanowski <tomasz.wegrzanowski@gmail.com> wrote:
> Hello,
>
> I need to pretty print some Ruby code into HTML.
> Any pointers :-) ?

Load it up in vim and export as html (:TOhtml)

martin

Farrel Lifson

8/10/2006 12:42:00 PM

0

On 10/08/06, Tomasz Wegrzanowski <tomasz.wegrzanowski@gmail.com> wrote:
> Hello,
>
> I need to pretty print some Ruby code into HTML.
> Any pointers :-) ?
>
> --
> Tomasz Wegrzanowski [ http://t-a-w.blo... ]
>
>

vim can do it quite nicely. Not sure how, but I know it can.

Farrel

Brian Campbell

8/10/2006 1:56:00 PM

0

Hi All,

I want to embed Ruby in my C++ program. My question relates to thread
safety in Ruby. I have an application that is massively threaded. If I
create an instance of the ruby interpreter per thread, will Ruby operate in
a thread safe manner?

Thanks.

-Brian


--------------------
Brian E Campbell
becampbel@hotmail.com



Ara.T.Howard

8/10/2006 2:17:00 PM

0

Tomasz Wegrzanowski

8/10/2006 9:58:00 PM

0

On 8/10/06, Dimitri Aivaliotis <aglarond@gmail.com> wrote:
> On 8/10/06, Tomasz Wegrzanowski <tomasz.wegrzanowski@gmail.com> wrote:
> >
> > Hello,
> >
> > I need to pretty print some Ruby code into HTML.
> > Any pointers :-) ?
>
> If you're looking for a code highlighter, try Syntax[1] or Coderay[2].
>
> [1] http://rubyforge.org/projec...
> [2] http://rubyforge.org/project...

Thanks a lot, coderay is great.

--
Tomasz Wegrzanowski [ http://t-a-w.blo... ]

tesla

9/10/2006 8:57:00 AM

0

Tomasz Wegrzanowski wrote:
> Hello,
>
> I need to pretty print some Ruby code into HTML.
> Any pointers :-) ?
>
I usually use Jedit and the code2html plugin.