Page 1 of 1
How to......
Posted: Mon Jun 26, 2006 7:40 am
by tsalexey544
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 =)
Posted: Mon Jun 26, 2006 7:42 am
by Weirdan
try 'View source...' =)
Posted: Mon Jun 26, 2006 7:42 am
by alex.barylski
<pre style="border: 1px solid black">
Some code
</pre>
Posted: Mon Jun 26, 2006 7:47 am
by tsalexey544
how to change the backround color and were can I find other tutorials on those squares =)?
Posted: Mon Jun 26, 2006 8:09 am
by Chris Corbyn
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>
Posted: Mon Jun 26, 2006 8:13 am
by tsalexey544
Thanx!!!!!!!!!!