Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with:

Code Pop-up And Download Features Working Again

By Ben Nadel on

I have fixed my blog so that the code pop-ups and download code features (located at the top of every code snippet) are working again. They has stopped working after I added my color coding. The problem was that the code features were going off of the character offset, so when the color coding was introduced which added code to the output, the offsets did not line up with what was in the database. Now, I use the snippet index (index within the blog entry) to grab it. This way, the content of the blog can be altered in any way, so long as no new code snippets are added. Works fine now.

Still not 100% satisfied with the blog code snippet stuff, but it should be OK for now.



Looking For A New Job?

100% of job board revenue is donated to Kiva. Loans that change livesFind out more »

Reader Comments

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
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.