Oh Crap! I Just Realized That Color Coding Killed My Code Download!

Posted May 18, 2007 at 3:00 PM

Ugggg! It seems like every time I make a step forward with my code snippet coloring, I take two steps back :( For those of you who have ever copied my code from the pop-up window, you might notice that it works by sending along the starting index of the code snippet (as an offset within the context of the blog entry). Well, once I started color coding my code samples, the "formatted" and the "non-formatted" code snippets no longer lined up (since they were different content)

Well, back to the drawing board. I guess not many people use this (as no one has alerted me to it). But if you do use it, you are gonna have to bear with me while I figure out what to do.

Post Comment  |  Ask Ben  |  Permalink  |  Print Page


You Might Also Be Interested In:



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

Reader Comments

May 20, 2007 at 2:22 PM // reply »
1 Comments

Bugfix needed :). For such small piece of code


May 21, 2007 at 11:39 PM // reply »
40 Comments

You know what would be cool?
Generate your code as Flash text using a sIfr method.
Its regular text that gets replaced on the fly with Flash. You can choose any font because it becomes vector graphics.

See technique here:
http://www.mikeindustries.com/sifr/

As a CF guy, you gotta be experimenting with Apollo, Flex, Flash and how they they can be used to improve the user experience. Well, you don't gotta, but it would still be kickass.


May 22, 2007 at 7:36 AM // reply »
6,516 Comments

@Glen,

I don't know... I feel like sIFR is good for titles and stuff that might be really designed out; but for content text, I feel like this should be very vanilla.

But, I agree that I should be experimenting with Apollo and that sort of stuff. Need to broaden those horizons.


Post Comment  |  Ask Ben

Recent Blog Comments
Nov 21, 2009 at 6:47 PM
Hal Helms - Real World Object Oriented Development, Sarasota - Day Five
@charlie griefer, Thank you.. ... read »
Nov 21, 2009 at 5:15 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jose Galdamez, Oh heh yeah I didn't paste the whole code. I should have defined the vars -- my bad. It's fixed thou. Thanks. ... read »
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 »