On Wed, 24 Nov 2004 04:26:17 +0900
jim / freeze.org wrote:

> * Brian Schröäer <ruby / brian-schroeder.de> [2004-11-23 09:26:11 +0900]:
> 
> I particularly liked the clean colorization of the ruby code. What did you use
> (and what color style) to convert the Ruby code to HTML?
> 
> 

I use xemacs' htmlize package to convert the ruby-code to html. Then I include a stylesheet. (You can copy that from my page if you want)

The important snippets of the Makefile I use:


htmlize: $(patsubst %.rb,browse/%-rb.html,$(wildcard *.rb)) browse/%-rb.html: %.rb mkdir -p browse/unsuccessfull xemacs -nw -eval '(htmlize-file "$<" "$@")' -kill && \ mv $@ $@.temp && \ cat $@.temp | ruby -e 'puts $$stdin.read.gsub(/<style type="text\/css">.*<\/style>/m, "<link id=\"css\" href=\"../ruby.css\" rel=\"stylesheet\">")' > $@ && \ rm $@.temp
Regards, Brian -- Brian Schröäer http://www.brian-schroeder.de/