It's really just a Ruby script you could hook up yourself, but I'm too lazy
to remember how to do it, so I let people use mine on Ruby Inside instead
The CSS needed and further instructions can be found here: http://www.rubyinside.com/advent2006/7-coloring.html
Cheers,
Peter Cooper
···
On 5/7/07, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Hi,
Does anyone knows how all that beautiful HTML formated Ruby code on
ruby-lang.org is generated?
I've hand edited most of the code on that site for various reasons, but TextMate can be used to generate HTML pretty close to it. The site's syntax coloring has been made into a TextMate theme called Ruby Blue:
from inside vim and have all the available color themes output as
HTML. In Emacs I use htmlize.el. Another option would be highlight,
which is run from the command line.
···
Felipe Contreras <felipe.contreras@gmail.com> wrote on Mon, May 07, 2007 at 05:58:05PM +0900:
Hi,
Does anyone knows how all that beautiful HTML formated Ruby code on
ruby-lang.org is generated?
For my HTML output, I use the ScreenShot plugin with vim. It comes
with the "TOhtml" command which produce an HTML output on my windows
computer. It should works on Linux, too.
The output looks like this :
<pre>
search_engines =
<font color="#6a5acd">%w[</font><font color="#ff00ff">Google Yahoo
MSN</font><font color="#6a5acd">]</font>.map <font
color="#804040"><b>do</b></font> |<font color="#008080">engine</font>|
<font color="#6a5acd">"</font><font color="#ff00ff"><a
href="http://www.">http://www.</a></font><font color="#6a5acd">"</
Unfortunately I don't have TextMate since I'm on Linux.
I really really like VIM, but I'm starting to feel it has a lot of shortcomings.
Hmm, maybe some Ruby extensions inside VIM is just what I need...
/me drools
···
On 5/7/07, James Edward Gray II <james@grayproductions.net> wrote:
On May 7, 2007, at 3:58 AM, Felipe Contreras wrote:
> Does anyone knows how all that beautiful HTML formated Ruby code on
> ruby-lang.org is generated?
I've hand edited most of the code on that site for various reasons,
but TextMate can be used to generate HTML pretty close to it. The
site's syntax coloring has been made into a TextMate theme called
Ruby Blue:
I've been wanting to write a Lua scanner for CodeRay, but haven't been
able (in mere minutes of exploration) to figure out where to begin.
Has anyone worked with CodeRay as a language author, and could provide
some tips/webpages/articles/documentation on how to write a plugin for
a new language for it?
···
On May 7, 3:34 pm, Jeremy Hinegardner <jer...@hinegardner.org> wrote:
You could also try CodeRayhttp://coderay.rubychan.de/