Surround it in <pre> and </pre> tags.
You can format the look of pre with CSS.
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!Hello,
I'm making a <a href=> link but I don't want it to show as a link i want it to show the code for visitors to copy so they can use it on their site. I'm putting it on a php file.
Surround it in <pre> and </pre> tags.
You can format the look of pre with CSS.
edit: this will help you to add a text in a textarea, for people to copy and paste easily.
Code:<html><head><title>(Type a title for your page here)</title> <script type="text/javascript"> function select_all() { var text_val=eval("document.form1.type"); text_val.focus(); text_val.select(); } </script> </head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <form name=form1 method=post action=''''> <textarea name=type rows=3 cols=35 onClick="select_all();">This text you can select all by clicking here </textarea> </form> </body> </html>
Last edited by IT Web Team; 05-14-2006 at 08:28 PM.
Thanks GUYS!
But <pre> doesn't work or <code> :(
I remember one time I used a generator online that would show the code. I can't remember the link :(
I am the kind of person that does it old school.
The < will output < and > will output >Code:<a href="http://www.link.com">link</a>
Therefore, the above would output: <a href="http://www.link.com">link</a>
Thanks JDK!
Easiest way is to surround using an HTML "code" tag.
<code>
<a href="BestBuyGas.com">Your text here</a>
</code>
Cheers,
BidNo
Is <code> a standard tag?
I tried <code> but it didn't work :(
Code:echo htmlentities('<a href="http://www.dnforum.com">DNForum</a>');
Thanks IT,
I'm using JDK's code.
It won't validateOriginally Posted by jdk
Im sure code will work cuz Ive tried it many times.
Bookmarks