| AND OR | string words | *

html and code

|

simple php code highlight

| see demonstration of simple php code highlight


this snippet highlights a php file and numberes the lines.
show php code in a nice layout.



full source of simple php code highlight [ line 1 - 23 ] | download simple php code highlight

1    <?php
2   echo '
3        <table style="border: 0; spacing: 0; margin: 0; width: 600px;" >
4          <tr>
5            <td style="width: 20px; background-color: #D4D4D4; padding-right: 2px; padding-left: 2px; text-align: right; vertical-align: top;">
6               <pre style="margin: 0; padding: 0;">';
7   $temp file('index.php');
8   for($i 1$i <= count($temp); $i++)
9   {
10       echo $i.'
11   ';
12   }
13   echo '
14                </pre>
15            </td>
16            <td style="width: 580px; background-color: #FFFFFF; padding-right: 5px; padding-left: 5px; vertical-align: top;">';
17   highlight_file('index.php');
18   echo '
19            </td>
20          </tr>
21        </table>
22   ';
23   ?>



323 hits by 16 users in the last 30 minutes.