This is the source code of colorcodeTEST.html.

The code is colored using the Coldfusion code coloring component.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Do code-coloring by using javascript, ajax, and coldfusion</title>
	<script language="JavaScript" src="colorcode.js" type="text/javascript"></script>
	<style type="text/css">
		body {
			font-family: Arial, Helvetica, sans-serif;
			font-size: 12px;
		}
		pre {
			font-family: "Courier New", Courier, monospace;
			border: 2px solid red;
			padding: 5px;
			white-space: pre-wrap;       /* css-3 */
			white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
			white-space: -pre-wrap;      /* Opera 4-6 */
			white-space: -o-pre-wrap;    /* Opera 7 */
			word-wrap: break-word;       /* Internet Explorer 5.5+ */
			width: 99%;
		}
	</style>
</head>

<body>
<p>
	The elements with a red border are &lt;pre&gt; tags.<br />
	The javascript finds all pre tags, takes the contents/innerHtml, and sends it to the server (doColorCoding.cfm) by using ajax.<br />
	The server then returns an xml file with the color-coded text.<br />
	With the xml data, the javascript changes the contents of the pre-tags with the xml data.
</p>
<p>
	For more info, see <a href="http://www.coldfusiondeveloper.nl/post.cfm/automatic-coldfusion-code-coloring-on">http://www.coldfusiondeveloper.nl/post.cfm/automatic-coldfusion-code-coloring-on</a>
	<br />&nbsp;
</p>

<pre>function piet()
{
	alert("Hi piet!");
}</pre>

<pre><code>	&lt;cfset variables.a = getTickCount() - request.startTime_num />
	&lt;cfoutput>Page took #variables.a# milliseconds to complete&lt;/cfoutput></code></pre>


<p>Next code snippet from: <a href="http://www.adobe.com/examples/cfgettingstarted/experience/index_content.cfm">http://www.adobe.com/examples/cfgettingstarted/experience/index_content.cfm</a></p>
<pre>
&lt;cfform height="680" width="600" format="flash" skin="haloblue" &gt;

&lt;cfformgroup type="panel" label="Business Card Wizard - created by Brad Fetter" style="color:##000000; fontSize:12; text-align: left;"&gt;

        &lt;cfformgroup type="Horizontal" label="Name"&gt;
            &lt;cfinput type="Text" name="firstName" width="100" required&gt;
            &lt;cfinput type="Text" name="lastName" width="100" required&gt;
        &lt;/cfformgroup&gt;

            &lt;cfinput type="Text" name="Title" label="Title:" width="210" required&gt;
            &lt;cfinput type="Text" name="companyname" label="Company Name:" width="210" value="ColdFusion Consulting, Inc." required&gt;
            &lt;cfinput type="Text" name="Locationname" label="Name of Location:" width="210" required&gt;
            &lt;cfinput type="Text" name="StreetAddress" Label="Street Address:" width="210" required&gt;
            &lt;cfinput type="text" name="StateCityZip" Label="City, State and Zip:" required&gt;
            &lt;cfinput type="text" name="officenumber" label="Office Number:" validate="noblanks,telephone" required="no" mask="(999)999-9999"&gt;
            &lt;cfinput type="text" name="Mobile" label="Mobile:" validate="telephone" required="No" mask="(999)999-9999"&gt;




    &lt;cfformgroup type="panel" label="Preview Card" style="headerColors:##D6EFFE, ##D6EFFE;" &gt;
        &lt;cfformgroup type="horizontal" height="65"&gt;
            &lt;cfformitem type="html" width="200" height="60" style="color:##006090; fontSize:12; text-align: left;"&gt;&lt;img src="cflogo.jpg" name="FLIR Logo" width="58" height="64" border="0" align="left"&gt;&lt;/img&gt;&lt;/cfformitem&gt;
            &lt;cfformitem type="text" name="companyname" style="font-family : 'Arial';
         font-size : 16pt;
         font-style : bolder;
         line-height : 12pt;
         font-weight : bold;
         font-variant : normal;
         text-transform : capitalize;
         color : 000000;
         text-decoration : none;
         text-align : right; border-style: solid;"
                    bind="{companyname.text}" &gt;&lt;/cfformitem&gt;
        &lt;/cfformgroup&gt;
        &lt;cfformgroup type="vertical"&gt;
            &lt;cfformitem type="text" name="Name" bind="{firstName.text} {lastName.text}" style="    font-family : 'Arial';
         font-size : 18pt;
         font-style : bolder;
         line-height : 10pt;
         font-weight : bold;
         font-variant : normal;
                    color : 000000;
         text-decoration : none;
         text-align : center;"&gt;&lt;/cfformitem&gt;
            &lt;cfformitem type="text" name="title" bind="{Title.text}" style="     font-family : 'Arial';
         font-size : 12pt;
         font-style : normal;
         line-height : 10pt;
         font-weight : normal;
         font-variant : normal;
         text-transform : capitalize;
         color : 000000;
         text-decoration : none;
         text-align : center;"&gt;&lt;/cfformitem&gt;
        &lt;/cfformgroup&gt;
        &lt;cfformgroup type="horizontal"&gt;
            &lt;cfformgroup type="vertical" leading="0" style="margin-top: 0;
                padding: 0;
                border-top-width: 0;
                padding-top: 0;
                margin-bottom: 0;
                border-bottom-width: 0;
                padding-bottom: 0;"&gt;
                &lt;cfformitem type="text" name="locations" bind="{Locationname.text}" style="indicatorGap:0;    font-family : 'Arial';text-align : left;"&gt;&lt;/cfformitem&gt;&lt;cfformitem type="text" name="locations" bind="{StreetAddress.text}" style="font-family : 'Arial';"&gt;&lt;/cfformitem&gt;
                &lt;cfformitem type="text" name="zip" bind="{StateCityZip.text}" style="font-family : 'Arial';"&gt;&lt;/cfformitem&gt;
                &lt;textformat&gt;

                &lt;/textformat&gt;
            &lt;/cfformgroup&gt;
            &lt;cfformgroup type="vertical"&gt;
                &lt;cfformitem type="text" name="Office" bind="Office: {officenumber.text}" style="font-family : 'Arial'; text-align : right;" label="Office:" &gt;&lt;/cfformitem&gt;
                &lt;cfformitem type="text" name="Mobile" bind="Mobile: {Mobile.text}" style="font-family : 'Arial';text-align : right;" &gt;&lt;/cfformitem&gt;
                &lt;cfformitem type="text" name="email" bind="Email: {firstName.text}.{lastName.text}@mycompany.com" style="font-family : 'Arial';text-align : right;" &gt;&lt;/cfformitem&gt;
            &lt;/cfformgroup&gt;
        &lt;/cfformgroup&gt;
    &lt;/cfformgroup&gt;


    &lt;cfinput type="Submit" name="submitBtn" value="Submit Order"&gt;

&lt;/cfformgroup&gt;

&lt;/cfform&gt;
</pre>


</body>
</html>