How to......
Moderator: General Moderators
-
tsalexey544
- Forum Commoner
- Posts: 41
- Joined: Thu Jun 22, 2006 11:19 am
How to......
You know when you put [php) (/php] befor and after a code (in this forum) it creates a very interasting square around the code. How to make those kind of square around any text. I want to put them on my site (not into a forum). Thanx =)
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
-
tsalexey544
- Forum Commoner
- Posts: 41
- Joined: Thu Jun 22, 2006 11:19 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
<?php
$data = highlight_file('./your_php_code.php', true);
?>
<div style="background: #ffffff; margin: 10px; padding: 4px; border: 1px solid #aaaaaa;">
<?php echo $data; ?>
</div>