Help - Search - Members - Calendar
Full Version: a box that shows the code?
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
Tomates
What is the code that people use for W4W stuff?
I cant remeber what it is.
It was like <textarea > or something like that.

Does anyone know what im talking about?
Marlons
Yeah you had it right. Just type that in. I think if you add something like this to your coding the boxes will be preset each time you type a textarea code.
CODE
.textarea {background-color: ###; background-image: "URL"; font-family:arial; color:ffffff; border:3px; rows="10" cols="20"
Splek
CODE
<textarea>TEXT</textarea>
Tomates
I think Splek you got it right

Its like the type that you can put html in it and it allows the html to show up instead of a picture or whatever.
mipadi
I took this one step further! Here's a script that shows itself in a text box!

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
    <title>Self</title>
</head>

<body>
    
    <textarea cols="80" rows="30"><?php
        $fh = fopen($_SERVER['SCRIPT_FILENAME'], "r");
        if ($fh) {
            while (!feof($fh)) {
                $c = fread($fh, 1);
                echo htmlspecialchars($c, ENT_QUOTES);
            }
        }
        fclose($fh);
    ?></textarea>
    
</body>

</html>


Amazing!
Blaqheartedstar
^amazing.
umm
CODE
<xmp>TEXT</xmp>

like a text box just without the box
manny-the-dino
Topic Closed, and Moved to Resolved Topics. Please PM a moderator if you would like this reopened.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.