From: Harry Ohlsen Date: 2002-12-06T08:35:09+09:00 Subject: Re: Ruby Book for People Who Aren't (Yet) Programmers > (Eventually, though, I would like to automate the process, just in case I > forget to test some code somewhere.) Yes, it should be possible to parse out all the pieces of code from the HTML and write some unit tests for them. I note that currently the code is inside
 tags.  I'm no HTML guru, but I 
would have thought that there may be other 
 tags in your document (now, 
or in the future), so maybe  would make more sense, to guarantee that 
the pieces you pull out are actually source code ... assuming you go with the 
idea of parsing the scripts from the HTML, that is.

Since you're using CSS, I don't believe there's anything stopping you from 
making  look precisely as you currently have your 
 looking in the 
browser.

Just a thought.

Of course, all these comments may be pointless, if you're actually writing the 
tutorial in something else and converting to HTML.  But, in that, case you 
presumably have a similar way to do the same thing.

H.