XStandard Support Weighs In On The Color Coding Issue

Posted September 6, 2006 at 6:36 PM

I have been working on color coding my code samples. Currently I keep the code samples in unordered lists. This gives me great control over the physical formatting (ie. line spacing, text wrapping, margins, etc), but makes color coding very difficult. Part of why I do this is because XStandard support suggested it. I also happen to feel that this is a fantastic way to handle it.

But, on the other hand, I WANT color coding. I figure I would run the problem by the XStandard people as they are the ones who had the original UL idea. They suggest, on output to page, converting the UL to PRE tags and then color coding that code (since it will have not other tags). I am currently messing around this idea, and I know that most of you out there use PRE tags... my problem is that it is just ganky. The line wrapping is less readable, the formatting is poor. I am not crazy about the PRE tags at all.

So, what to do?? Not sure just yet. I am fooling around with doing the PRE tags for my RSS feed and keeping the UL for my on-site display. The color coding itself is still not there though.

Post Comment  |  Ask Ben  |  Permalink  |  Print Page



Learning ColdFusion 9 - ColdFusion 9 tutorials, samples, examples, demos

Reader Comments

There are no comments posted for this web log entry.


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 21, 2009 at 4:49 PM
Styling The ColdFusion 8 WriteToBrowser CFImage Output
Great work yet again Ben! Whilst I didn't use this whole code, I copied some of your regex code for a similar problem with the lack of an alt attribute and unescaped ampersands in CFIMAGE for Railo 3 ... read »
Nov 21, 2009 at 1:13 PM
My First ColdFusion Builder Extension - Encrypting And Decrypting CFM / CFC Files
@Ben, Because I am pedantic, I just want to make sure that everyone knows there is absolutely no encryption going on. There is only encoding and obfuscation. The cfencode tool only obfuscates your C ... read »
Nov 21, 2009 at 12:28 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jody I can't seem to get your code sample to work. If you are still having problems, try this code out and see if it gets you what you wanted. <!--- Comma delimited list with various duplicates ... read »
Nov 21, 2009 at 11:03 AM
Groovy Operator Overloading Does Not Work In The ColdFusion Context
Hi Ben, Thanks for this informative post. Now I am reading ur old posts too ... read »
Nov 21, 2009 at 10:56 AM
HostMySite.com Has The Best ColdFusion Hosting
@Mehul, Yes very nice people, however several downtimes per day which was not acceptable. Hence we had to move out. I am glad you are having good luck with them so far. ... read »
Nov 20, 2009 at 11:32 PM
Five Months Without Hungarian Notation And I'm Loving It
I've used headless camel case for years for not only ColdFusion variables, but also SQL tables and fields... pretty much everything involving code. I also subscribe to the "don't abbreviate and clea ... read »
Nov 20, 2009 at 11:00 PM
Five Months Without Hungarian Notation And I'm Loving It
@Marcel, Yeah, I always err on the side of longer but more readable variable names. As for the camel casing of CF methods and the headless camel casing of custom items, I get around this by always ... read »