Code Box

Conor

New Member
Messages
3,570
Reaction score
0
Points
0
I need a code for a code box so I can place code on my site. I want it to be like this:

PHP:
This is what I want. See the box?

Anybody got one?
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Got one on my website at alac.x10hosting.com.

Code:
<textarearows=4 cols=35>BLAH THIS IS INSDIE</textarea>

I believe it is the same thing as the [ code ] tags... just the code tags here are formatted to make it not look like one.

Edit: nevermind... but you can edit it to not look like a textarea.
 

Jim

New Member
Messages
170
Reaction score
0
Points
0
Code:
<div style="border: 1px solid black; width: 640px; font-family: Courier;"><pre>codehere</pre></div>

Try that.
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Jim,

That works for text, but not for code... If you insert "<a href="site">bla</a>" it will be "bla", linking to "site".
 

Jim

New Member
Messages
170
Reaction score
0
Points
0
Code:
<div style="border: 1px solid black; width: 640px; font-family: Courier;"><xmp>codehere</xmp></div>
That should do it.

<xmp> is deprecated, but it works. :p
 

prasys

New Member
Messages
330
Reaction score
0
Points
0
I think xmp should help you there , BSS. Again thats the way to do it
 
Top