On May 7, 3:58 pm, "Felipe Contreras" <felipe.contre... / gmail.com>
wrote:
> Hi,
>
> Does anyone knows how all that beautiful HTML formated Ruby code on
> ruby-lang.org is generated?
>
> Like this:
>
> <div id="code">
>
> <div class="comment"># Output "I love Ruby"</div>
> <div>say <span class="op">=</span> <span class="string">"I love
> Ruby"</span></div>
> <div>puts say</div>
> <div class="blank-line">&nbsp;</div>
> <div class="comment"># Output "I *LOVE* RUBY"</div>
>
> <div>say<span class="op">[</span><span
> class="string">'love'</span><span class="op">]</span> = <span
> class="string">"*love*"</span></div>
> <div>puts say<span class="op">.</span>upcase</div>
> <div class="blank-line">&nbsp;</div>
> <div class="comment"># Output "I *love* Ruby"</div>
>
> <div class="comment"># five times</div>
> <div><span class="numeric">5</span><span class="op">.</span>times
> <span class="op">{</span> puts say <span class="op">}</span></div>
>
> </div>
>
> --
> Felipe Contreras

My guess is they make it manually. If not, it is a part of RadiantCMS
project that they use it.