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

Posted May 18, 2007 at 3:00 PM by Ben Nadel

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.


You Might Also Be Interested In:



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 »
46 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 »
11,314 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 A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jun 18, 2013 at 9:20 PM
Mapping AngularJS Routes Onto URL Parameters And Client-Side Events
I couldn't find examples of passing multiple arguments using the when() routing statement so figured out through trial and error that you can pass multiple arguments using the following format: .whe ... read »
Jun 18, 2013 at 3:39 PM
Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusion
Hi Ben, THANKS! While not bleeding edge, it is new to me & I like learning new things every day! ... read »
Jun 18, 2013 at 12:30 PM
Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs
Also spellcheck="false" should be mentioned as part of html5 specs ... read »
Jun 18, 2013 at 8:40 AM
Using Named Functions Within Self-Executing Function Blocks In Javascript
Hi Ben, you forgot to mention the most important thing for named self-executing functions - they can be referenced by name ONLY inside their execution context (which is parens in this case), it mean ... read »
dee
Jun 18, 2013 at 7:01 AM
My Safari Browser SQLite Database Hello World Example
hai ben, this program is really good i could understand the concept but i dint know how to save it and how to open it as you have done in the video can u give that details pls ... read »
Jun 18, 2013 at 6:04 AM
Clearing Inline CSS Properties With jQuery
Thanks a lot for for post! It helped me a lot... after being stuck since 24 hrs.. found solution from your post. Thanks again! ... read »
Jun 18, 2013 at 2:31 AM
SOTR 2013 - The Best Conference I Never Went To
I keep watching it, should keep me happily distracted until SotR14 ;) ... read »
Jun 17, 2013 at 9:45 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, As I was reading what you wrote, it occurred to me that maybe I do something similar to that in some of my client-side code. In an application I'm working on, there are a bunch of unrelated ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools