Syntax Highlighting

Thanks to Franklin Manuel over at bloggermind.com for posting that article on how to get syntax highlighting enabled.

I currently have brushes for sql, cf, c#, javascript installed and here's the syntax:

<pre class="brush: cf">
<cfset RightNow = Now()>
<cfoutput>
 #RightNow#<br />
 #DateFormat(RightNow)#<br />
 #DateFormat(RightNow,"mm/dd/yy")#<br />
 #TimeFormat(RightNow)#<br />
 #TimeFormat(RightNow,"hh:mm tt")#<br />
 #IsDate(RightNow)#<br />
 #IsDate("January 31, 2007")#<br />
 #IsDate("foo")#<br />
 #DaysInMonth(RightNow)#
</cfoutput>
</pre>

You can get more brushes here:
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/coldfusion.html

I also use This Tool to convert less than and greater than symbols to html.

No comments: