[TYPO3-RTE] html code and rte
Marlies C
mc at mcuniverse.com
Wed Mar 8 17:51:06 CET 2006
"mario" <chiari.hm at flashnet.it> wrote in message
news:mailman.9184.1141830442.3122.typo3-project-rte at lists.netfielders.de...
> Hello,
>
> I appreciate your help.
>
> I wish to display some HTML code on my final web page, say a line:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">.
>
> If I paste the HTML code within the RTE textarea, that piece of code is
> shown on the web page. So far sa good.
>
> However, if I try to format the code by a RTE toolbar button or menu,
> it does not work:
> e.g., if I use the font menu and select, say, Courier, what I get
> shown on the web page is:
>
> <font face="Courier"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN"></font>
>
> and the corresponding html (source) code is:
>
> <a id="c30"></a><pre id="line1" style="margin:0 0 0 0;
> color:navy;"><font face="Courier"><span
> class="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN"></span></font><br /><
>
> what am I doing wrong?
> thanks
> mario
>
> ps as suggested on this list, the TS setup includes:
> RTE.default.proc.entryHTMLparser_db.tags.span.fixAttrib.style.unset >
> RTE.default.useCSS = 1
>
>
Have you tried to just place your code inside <pre> tags? Just select Pre
from the menu inside the RTE.
Like this:
<pre><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"></pre>
This is the only way I know how to display code with the RTE with my
tutorials, so that the code is not executed.
Regards,
Marlies
www.mcuniverse.com
More information about the TYPO3-project-rte
mailing list