PDA

View Full Version : I need a text box that till show html !?!



Bruxy
04-03-2007, 05:17 PM
HELP !!

I need a text box (html) that i can put a html in, and it will show what the html will look like ...

e.g
<style type="text/css">
<!--
.style1 {
color: #0099FF;
font-size: x-large;
font-family: Tahoma;
font-weight: bold;
}
.style2 {color: #000000}
-->
</style>
<div align="center"><span class="style1">Bruxy <span class="style2">!! </span></span></div>

That is the html to this ... Bruxy !!

.but i want a box that will not show the proper html and what the html meens...

Tell me if im making no sence

Thanks !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

F32
04-03-2007, 05:38 PM
You're making no sense.

..-Evan-..
04-03-2007, 05:41 PM
do you mean like
this:

<html> <head> </head> </html>

..-Evan-..
04-03-2007, 05:45 PM
sorry for double posting but editing wass messing up but.
go here http://www.funky-chickens.com/tarea.shtml and go to the bottom.

YouFail
04-03-2007, 05:46 PM
<textarea><?php $yourcode = htmlcode here; htmlentities($yourcode); echo "$yourcode"; ?></textarea>

Im not 100&#37; sure...

Mr.OSH
04-03-2007, 05:51 PM
Erm, if you mean putting HTML code as an output in text then just

<body>
&lt;HTML&gt; <br />
<br />
&lt;BODY&gt;
</body>
</html>


I think.. if thats what you meant... :s

PinkFM
04-03-2007, 05:57 PM
Use an iframe for it?

ZAG
04-03-2007, 06:01 PM
<textarea>
&lt;style type="text/css"%gt;
&lt;!--
.style1 {
color: #0099FF;
font-size: x-large;
font-family: Tahoma;
font-weight: bold;
}
.style2 {color: #000000}
--%gt;
&lt;/style%gt;
&lt;div align="center"%gt;&lt;span class="style1"%gt;Bruxy &lt;span class="style2"%gt;!! &lt;/span%gt;&lt;/span%gt;&lt;/div%gt;
</textarea>

Blob
04-03-2007, 06:02 PM
Is this forum getting thicker (Except Adam, Richard and opensourcehost and Thomas)

He wants to DISPLAY HTML ON A HTML PAGE

So its hdffhdf.html

And on that he wants to display

<html> Hello </html>

But actually display it instead of it doing it..

Richards might work, and thomas' will.

Invent
04-03-2007, 06:05 PM
You would just do the &whatever codes instead of actually using < and > ?

So just:

<html>
<head>
</head>

<body>
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;lol&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;God this forum is getting thicker&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;
</body>
</html>


EDIT: Sorry never saw Richard's post. I'm 100&#37; his method will work ;]

Mr.OSH
04-03-2007, 06:07 PM
You would just do the &whatever codes instead of actually using < and > ?

So just:

<html>
<head>
</head>

<body>
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;lol&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;God this forum is getting thicker&lt;/h1&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;
</body>
</html>


EDIT: Sorry never saw Richard's post. I'm 100% his method will work ;]

Yep that will work... more or less what I said :P

Want to hide these adverts? Register an account for free!