Link to home
Start Free TrialLog in
Avatar of HPvH
HPvHFlag for Netherlands

asked on

Show code on your site, so they can copy it.

Hi,

I want to show this code in a frame or table so people can copy it and use it on there own site.

How to show code on a php page??

<!-- Start 468x60 Banner -->
      <a border="0" href="http://www.sitename.nl"><img src="http://www.sitename.nl/banners/mesjes468x60.gif" alt="MyAlt Text" border=0></a>
<!-- Einde 468x60 Banner -->
SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
better use <iframe>...</iframe> to display something like this info as table or grid section like... some cool examples at http://www.htmlcodetutorial.com/frames/_IFRAME.html
Avatar of HPvH

ASKER

I need a code that shows the code on a page so a person can cody the code and use it.

Like:

<div class="phpcode"><code><span class="html">
&lt;html&gt;<br />
 &lt;head&gt;<br />
   &lt;title&gt;Voorbeeld&lt;/title&gt;<br />
 &lt;/head&gt;<br />
 &lt;body&gt;<br />
<br />
   <span class="default">&lt;?php <br />
   </span><span class="keyword">echo </span><span class="string">"Hallo! Ik ben een PHP script!"</span><span class="keyword">; <br />
   </span><span class="default">?&gt;<br />
</span><br />
 &lt;/body&gt;<br />
&lt;/html&gt;</span>
</code></div>
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HPvH

ASKER

Thanks!