View Single Post
 
Old 03-08-2009, 09:18 AM
scottyearl scottyearl is offline
Novice
 
Join Date: Mar 2009
Posts: 1
scottyearl is on a distinguished road
Default Styling 'code' in word

Does anyone know if you can or how to style code in word so that code is a seperate colour, reserved words and the syntax are coloured etc.

e.g.

PHP Code:
<?php
 
include_once ('dbconnect.inc');
 
 if(empty(
$_SESSION['cartproducts']))
 {
  echo 
'<p>You cannot complete the checkout process with an empty cart!</p>';
  echo 
'<a href="cart_new.php"><img width="300" height="50" border="0" src="images/returnlink.gif" /></a>';
As opposed to:

<?php
include_once ('dbconnect.inc');

if(empty($_SESSION['cartproducts']))
{
echo '<p>You cannot complete the checkout process with an empty cart!</p>';
echo '<a href="cart_new.php"><img width="300" height="50" border="0" src="images/returnlink.gif" /></a>';
Reply With Quote