x Share your thoughts on trends and content!

CodePaste.NET, a Website for Exchanging Code Snippets

by on Jul 21, 2009 |

Rick Strahl has created CodePaste.NET, a website that allows .NET code snippets to be shared among social networking and IM users.

It is difficult to insert code in social networking web pages and IM windows because the code formatting usually gets lost or the number of characters is limited, or other similar reasons. CodePaste.NET lets anyone to paste code snippets in a text box, then hit the Paste button. The snippet receives a URL that can be copied from the browser’s address bar and distributed. Anybody can view that snippet, and signed-in users can comment and edit it. This way, snippets can be sent even over Twitter.

The website offers syntax highlighting for the following languages: C#, VB.NET, JavaScript, HTML, ASP.NET, JavaScript, XML, CSS, Sql, T-SQL, and FoxPro. Code line numbering can be turned on or off, and the code can be copied to the clipboard with a click.

The snippets can be retrieved as JSON, XML using “?format=json” (or xml) after the URL like this: RSS and ATOM support was added to retrieve lists of snippets.

The entire website’s source code is available for review.

Pastie, a similar site, offers the same service but for a much larger choice of languages including Java, Ruby, C++, Python, Perl, PHP, Pascal, YAML, and others.

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Change and innovation... by Jack Singleton

Does this really relate to "change and innovation in the enterprise software development community"? The article sounds almost like an advertisement with one sentence about a competitor tacked on the end.

Sorry I didn't make that sound more constructive, I do mean it to be taken constructively.

Re: Change and innovation... by Jonathan Allen

Thank you for letting us know you feel that way. There is a fine line between "news about a new product or service" and an "advertisement for a new product or service". When our customers like yourself tell us that we have strayed over the line, we take it very seriously.

Bad Quality by Anand Vishwanath

I think this is poor quality from InfoQ. Even the snippets posted on the site are half baked with junk names.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

3 Discuss
General Feedback
Marketing and all content copyright © 2006-2016 C4Media Inc. hosted at Contegix, the best ISP we've ever worked with.
Privacy policy

We notice you're using an ad blocker

We understand why you use ad blockers. However to keep InfoQ free we need your support. InfoQ will not provide your data to third parties without individual opt-in consent. We only work with advertisers relevant to our readers. Please consider whitelisting us.