CodePaste.NET, a Website for Exchanging Code Snippets

| by Abel Avram Follow 9 Followers on Jul 21, 2009. Estimated reading time: 1 minute |

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

Adoption Stage

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

Educational Content

Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you