From: Hugh Sasse Date: 2005-10-11T02:08:22+09:00 Subject: Re: [ANN] Ruby Code & Style On Tue, 11 Oct 2005, James Britt wrote: > James Edward Gray II wrote: >> On Oct 9, 2005, at 11:52 PM, James Britt wrote: >> >>> The newest on-line resource for serious Ruby information has gone live. >> >> >> I've read, and enjoyed, the first article. >> >> Requests: >> >> 1. Could the code font size be increased a bit? > > CTRL + First read that as "me too" then realised it's a Firefox reference. Firefox does not always do the right things with 3 columns and large print though, but this site is such that it copes well. I stress tested it with letters an inch high, approx. For better Firefox support a line in the ... would also be good to make the RSS visble to Firefox's 'magic'. > > :) > [...] > >> 2. Any chance of syntax highlighting? > > Man, some people want everything! > > Indeed, syntax highlighting would be nice. Are there existing Ruby apps that > will take a source file and generate nice colored HTML? (I bet there are; > I'm too lazy/busy (blazy?) to look.) http://www.andre-simon.de/ (which is highlight). About which I note on my home page: The documentation about this package for hightlighting programming languages is in German followed by English. It is possible to do some of this using Vim, #!/bin/sh for f in $* do vim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" $f done but I have found that since I use light text on a dark background results are disappointing when printing. > > > (Is there a better way to indicate that some element contains preformatted > code for a particular programming language?) Not to my knowledge. Only spoken/written languages AFAIK. > > > James > Hugh