Either use HTMLCodeFormat and CSS to set a style for <pre> tags:

<style type="text/css">
pre {
  font-family: verdana;
  font-size: 10pt;
}
</style>

#HTMLCodeFormat(somevariable)#


or else use HTMLEditFormat, and enclose it in <pre> tags yourself with a
designated style class:

<style type="text/css">
code {
  font-family: verdana;
  font-size: 10pt;
}
</style>

<pre class="code">
#HTMLEditFormat(somevariable)#
</pre>


Jim



----- Original Message -----
From: "Douglas Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, December 22, 2001 12:28 AM
Subject: Re: Why does htmlCodeFormat change font


> I tried using HTMLEditFormat, but it removes all carriage returns and run
> s
> everything together. I need to be able to output HTML code so that the
> browser does not try to render it, but would like my fonts to stay accura
> te.
> Any other suggestions?
>
>
>
> Doug
>
>
>
> ----- Original Message -----
> From: "Garza, Jeff" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, December 21, 2001 11:11 PM
> Subject: RE: Why does htmlCodeFormat change font
>
>
> > I beleive that when HTMLCodeFormat() is used the entire code block is
> > wrapped with <PRE> tags.  This would effectively negate your style
> > sheets.
> > To show the code with fancy formatting, try using the HTMLEditFormat()
> > function.
> >
> > Cheers,
> >
> > Jeff Garza
> >
> > -----Original Message-----
> > From: Douglas Brown
> > To: CF-Talk
> > Sent: 12/22/01 12:12 AM
> > Subject: Why does htmlCodeFormat change font
> >
> > I am outputting with htmlCodeFormat and it seems like when I do it
> > ignores the stylesheet. Why is this and can it be corrected?
> >
> >
> > Thanks
> >
> >
> > Doug
> >
> >
> >
> 
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to