Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2009, 09:18 AM
scottyearl scottyearl is offline
Novice
Styling 'code' in word
 
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
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misplaced Post Code Doc John Word 0 02-05-2009 05:38 AM
Styling 'code' in word Code for Changing Cell Backgrounds leroytrolley Excel 2 12-05-2008 02:05 AM
Help - Word adds secret code? Copy to notepad? andytaylor2006 Word 0 12-15-2006 11:00 PM
Excel ->VB code for Checkbox (control toolbox) kirkstyle Excel 0 08-16-2006 04:17 PM
FileSaveAs with Code bsmith Office 0 01-05-2006 08:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft