Inline Code Snippets Can Now Be Downloaded As One Zip File

Posted May 29, 2007 at 9:16 PM by Ben Nadel

A few days ago, Boyan Kostadinov suggested that I add functionality that would allow users to download all the code snippets of a given blog entry as one zip file (as opposed to downloading each snippet individually). That suggestion is now a reality; for all blog entries that have more than one code snippet, there is now a Download Zip link at the bottom of the blog entry content.

It is not doing anything fancy about the file names and types - every code snippet gets stored as a text (TXT) file with an incrementing ID. You will have to rename the files yourself into the appropriate file type. Since the blog entry has no sense of what kind of snippet it is, there was nothing I could do.




Reader Comments

May 30, 2007 at 9:34 AM // reply »
95 Comments

Great! You the man. Where is that wishlist? I got paid today, he he.


May 30, 2007 at 10:40 AM // reply »
11,246 Comments

Ha ha, give me another great suggestion and will call it even ;)


May 30, 2007 at 2:15 PM // reply »
95 Comments

Sure. You can have more than one :-) Not sure how great it is but here is an idea: offer inline comments form for those that have JavaScript enabled. It's would be swell to be able post comments without forget what I was posting about.


May 31, 2007 at 9:19 AM // reply »
95 Comments

Ben,

here is another idea I've been playing around for a while. Not sure how doable it would be but it would be pretty damn cool if done. It's basically a way to execute your sample code on your site in a kind of a sandbox. So when you post a snippet, there is an option to execute it and see the results. That would also save you from having to post the output yourself. Just a thought.


Jun 2, 2007 at 3:20 PM // reply »
11,246 Comments

@Boyan,

I have thought about doing some sort of sandbox feature, but my site is on my company's production server and I just think they would ever forgive me I let something malicious happen :) But it is a cool idea.

As for the inline commenting... I like it. It might a bit of effort. Maybe I can do a half-way thing and have a pop-up option like the BlogCFC does.


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
May 25, 2013 at 10:08 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Ben, my question is that i want the current node with its tag and its parent node. i just want only that data. So, give me the solution for that. and remember solution is working on " xpath 1.0 ... read »
May 25, 2013 at 10:01 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
hey ben, i want get my current node tag and also want the root node tag withing. So, how can i fix it.. ! ... read »
May 24, 2013 at 5:39 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Adam Oops! My mistake! I hadn't gotten that far in my testing - I'm still baby stepping my way through the process. ... read »
May 24, 2013 at 5:13 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
Hi Jason, Thanks for checking up on that, but I still stand firm on my position. :) There are actually two listLast()'s in use, and you're right that the one using a space as a delimiter is fine. ... read »
May 24, 2013 at 4:45 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Ben I have been lurking your site for quite some time, and haven't stepped up to comment until today. Thanks for all the great info - keep it up! @Adam I believe you are mistaken... as the commen ... read »
May 24, 2013 at 11:21 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@WebManWalking, Ha ha, let's us never speak of justifying "##" notation again :P ... read »
May 24, 2013 at 11:18 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben, Ah, so it was indeed how I vaguely remembered it to be: A direct assignment value = users.id[ i ] causes value to retain the sticky datatype of the query column. Although unnecessary in ... read »
May 24, 2013 at 9:11 AM
Preventing Links In Standalone iPhone Applications From Opening In Mobile Safari
@Brandon, Hi, No, I haven't been able to do that. I have just kept it as it is. ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools