Skip to main content
Ben Nadel at CFUNITED 2008 (Washington, D.C.) with: Mark Drew
Ben Nadel at CFUNITED 2008 (Washington, D.C.) with: Mark Drew

Code Pop-up And Download Features Working Again

By
Published

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.

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel