Tuesday, October 23, 2007

Snip Snipe Code-Tagging Plugin

I've taken my first crack at a Firefox extension for SnipSnipe out at the Mozilla extensions developers sandbox. Take a look, it's easy to use! (Although I'd appreciate anyone with FF sandbox access to download via that channel, you can also download the plugin directly from here)

After installing the plugin and creating a user account on snipsnipe, find some code you like and highlight it. Right-click and select "Share Snippet..."
This will open up a new tab pre-populated with the snippet and the URL where it was found.
Just give the snippet a title, short description and some tags (don't forget the programming language... that's how snipsnipe knows how to highlight the code).
Submit the new snippet and that's it! Add all the snippets you want... it's free :)

5 comments:

jimbojw said...

The extension developers site link you link to requires a developer login.

Until your extension is approved, it'll be in the "sandbox". The link you really want (I believe) is this:

https://addons.mozilla.org/en-US/firefox/addon/5903

However, until it's unsandboxed, you should probably host the xpi file yourself somewheres - S3 maybe? And make a big huge link to it too - right up front.

Eric said...

Done. Thanks Jim.

jimbojw said...

One more caveat - if you access the sandbox URL, you have to have "Show Sandbox" enabled in your preferences. To do this:

1) Sign into addons.mozilla.org (or create an account if you don't have one)

2) Click the "My Account" link in the upper-right

3) Check the "Show Sandbox" checkbox and hit Save

That's it!

John said...

Using the extension to clip some code results in

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Eric said...

Ah shit, thanks John - I truncated the urls two nights ago... it is now

http://snipsnipe.com/manage
rather than
http://snipsnipe.com/snips/manage

I'll fix the routing to forward the latter to the previous and update the plugin the match.