3

I noticed that there is no option to upload .zip files to wordpress.com. Lots of blog services give permission to their users for this. I'm a programmer and a lot of my blogs contain code samples. How can I attach my codes to my blogs?

migrated from superuser.com Aug 2 '11 at 4:49

This question came from our site for computer enthusiasts and power users.

  • 2
    Use a 3rd party service like gisthub or pastebin. There are plenty to choose from. – Ciaran Aug 2 '11 at 5:02
3

You can use a free account at http://box.net or Ubuntu One to upload and share .zip files, but unless you have a LOT of code that you want to share, you're probably better off embedding your code samples into your posts.

Wordpress now supports posting source code on blogs hosted through their site:

While WordPress.com doesn’t allow you to use potentially dangerous code on your blog, there is a way to post source code for viewing. We have created a shortcode you can wrap around source code that preserves its formatting and even provides syntax highlighting for certain languages [...]

  • Thanks. Sometimes it's just needed to post the entire project. I previously used dropbox but I was looking for another solution. – Alireza Noori Aug 3 '11 at 0:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.