From: why the lucky stiff Date: 2004-06-11T11:04:41+09:00 Subject: Re: RedCloth/Textile question Gavin Sinclair wrote: > On Friday, June 11, 2004, 5:47:07 AM, why wrote: > >>If you have a large block of text you want protected, you can surround >>it with tags. In addition,
 and  contents are
>>protected from Textile formatting.
> 
> If you want to use some formatting (bold, italic, ...) in a code
> block, are there any good methods?
> 

I haven't thought much about this.  Immediately, I'd say you would need 
to use a tag other than 
 or .  Right now I just wrap those 
sorts of code blocks in 
tags and then be sure to give the formattedCode class
-like css properties.

With RedCloth 2.1, you'll also be able to override RedCloth's default 
handling of elements.  Would that be okay?

_why