11 Websites for Code Snippets

Published in Web Development

When coding a website, making use of existing code snippets can be a great time-saving practice. It could be your own snippets that you keep and re-use, or you can benefit by using snippets that have been shared by other developers.

There are a number of websites that exist to allow developers to share code snippets with each other, or to allow developers to manage their own snippets. In this post we’ll take a look at 11 websites that are excellent sources of code snippets.

CSS Deck

CSS Deck showcases pure CSS creations (only HTML and CSS). You can view the creations on display and view the code snippets used to create them. You can submit your own creations, leave feedback on existing creations, or browse for code that can be used in your own projects.

CSS Deck

CSS-Tricks

Popular blog and community site CSS-Tricks includes a section for code snippets. The snippet categories include HTML, CSS, JavaScript, jQuery, PHP, WordPress, and .htaccess.  You can easily submit your own snippets if you would like to contribute.

CSS-Tricks

Snipplr

Snipplr is a repository of code snippets for HTML, CSS,  JavaScript, PHP, Ruby, and more. You can view the snippets with or without an account, and with an account you can comment or summit your own snippets.

Snipplr

DZone Snippets

DZone, a popular community site for developers, includes a section for code snippets. With an account you can add your own snippets and assign them tags. You can browse existing snippets through the tags or by user.

DZone Snippets

Joyent Code Snippets

Joyent also allows you to add your own snippets and tag them.You can view recently submitted snippets, or browse by tag or user.

Joyent Code Snippets

WpRecipes

WpRecipes posts helpful snippets for WordPress developers. Snippets for all kinds of purposes are included.

WpRecipes

Smipple

Smipple exists for the purpose of allowing users to share code snippets with others. You can submit a snippet using your Google account, and tag your favorite snippets for future use. With or without an account you can browse popular and recent snippets.

Smipple

PHP Snips

PHP Snips focuses, of course, on PHP. You can view popular snippets, the most recent snippets, or search for specific snippets. With an account you can submit your own snippets to share on the site.

PHP Snips

Codes PHP

Codes PHP also focus on PHP snippets, but also provides snippets for MySQL, WordPress, and PHP frameworks. Snippets can be browsed by category, plus popular and recent snippets are shown in the sidebar. You can add your own snippets by creating an account.

Codes PHP

Snipt

With Snipt you can submit a snippet and assign tags to it. Snippets can be browsed by tags and can even be easily embedded. With or without an account you can leave comments on existing snippets.

Snipt

DevSnippets

DevSnippets includes code snippets, links to helpful tutorials, and links to resources.

DevSnippets

Ebook

Free E-book: Freelance Designer's Guide to Multiple Income Streams.
Enter your email address.

10 Responses

Well, this is actually a very useful coding sppet websites, this would help me a lot, specially I have so many clients to work on..

Prashant June 1st, 2012

Awesome post.Bookmarked :)

Lebo June 6th, 2012

Thank you!

uptenlist June 11th, 2012

sitepoint forum is another one, which i got help every time… thanks for these resources

jonathan June 14th, 2012

You can also have a look on brand new site http://www.ireusable.com

Jonathan July 23rd, 2012

You also forgot snippetrepo

Dean August 8th, 2012

Great post. I use http://www.fablecode.com/

Theo August 23rd, 2012

Great list, bookmarked, thanks!

Alex Roberts September 8th, 2012

Thanks for the list and probably the most popular one listed here is Css deck which is really helpful.

fraakz October 2nd, 2012

Thanks for the list I guess css-tricks is the best one.

Leave a Reply