0

Whoo hooo! Code publishing in blogs made easy.

InstantSpot

Since we started InstantSpot, one feature in particular has been less than ideal as a techie-type user has been posting code into your blog entries. That ends today!

As was announce on several blogs a month or so ago, the EverFro team has put together a cool resource for sharing code with other developers called codeShare. Their service allows people to submit code through a form, and then let other developers view it and submit comments to it via a public URL.

Considering our needs and their new service, we thought it might be interesting to team up to create a nice way to publish code in blog entries on InstantSpot. After some discussions, we co-developed a web service for them that allows people to submit code to their service remotely via an API, and specifically from our blog entry form.

The way it works is pretty cool, making use of both Web Services in ColdFusion and more of Rob Gonda's AjaxCFC (which I continue to love!). When one of our users adds a code share, it will automatically add them as a user to codeShare if they are not already a member. If they are already a member the code will be added to existing account's shares. This way they can go modify or notate their code at anytime by visiting codeShare.

Here are some screenshots of the process:

In our blog entry form in the control panel we have a new link above the editor "Insert code to this entry".

 


When you click that link, the editor window slides down and exposes the codeShare interface which allows you to paste in an publish code:

 

 

When that is submitted, the following is displayed:

As you can see in that response, you can preview your code like this. You can then paste the codeshare tag anywhere in your entry (multiple code shares are acceptable in a single post), or by hitting the "Insert into your entry", the tag will be inserted and the codeShare interface will disappear.

So what did we create? Well, now I am going to paste in that bracketed codeShare tag.


Keep your eye on the codeShare project. They have some other super secret alliances in the near future that will also make use of the submission API!

 

tags:
InstantSpot
Ryan said:
 
Dave, excellent write up and thank you for your help in making this project a go! You and Aaron have a great product on your hand we're very happy to be a small part of it.

Ryan
 
posted 1136 days ago
Add Comment Reply to: this comment OR this thread
 
fro said:
 
Dave - I have to second Ryan's comments. You guys have been a huge inspiration. I only see things getting better and better for InstantSpot and EverFro.
 
posted 1135 days ago
Add Comment Reply to: this comment OR this thread
 
Ben Nadel said:
 
Very cool! Very cool indeed.
 
posted 1135 days ago
Add Comment Reply to: this comment OR this thread
 

Search

Various Links

HikeTheCanyon.org - Rim-to-Rim hike of the Grand Canyon.
Dave Shuck on Twitter - Follow me on Twitter.
Scriptalizer - Minify your Javascript and CSS