Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

PasteAll.org (beta) - easily share large blocks of code and text

20

From the creators of GraphicAll.org comes a slick new online tool for sharing programming code and text in many different formats, complete with syntax highlighting! Of particular interest to the Blender community is its built-in support for the Blender API.

PasteAll.org is the perfect place to store and share your Blender code. Simply paste it and save it, and your code is saved with a simple url and ID number:

http://pasteall.org/#

When you need to share your code, simply provide the url. Here's an example url demonstrating Blender python code:

http://pasteall.org/2

PasteAll.org recognizes the following formats:

abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf,
c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp, cpp-qt, csharp, css, d, delphi, diff, div,dos,
eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io,
java5, java, javascript, latex, lisp, lua, m68k, mpasm, mysql, nsis, objc, ocaml,
ocaml-brief, oracle8, pascal, per, perl, php, php-brief, plsql, python, qbasic, rails,
reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, sql, tcl, text, thinbasic, tsql, vb,
vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80

Check it out!

20 Comments

  1. Hey guys.

    basse, as one of the dudes that worked on this... find me in the irc chatrooms and let me know what could improve. I know there's lots of pastebins out there, but we are trying to make this one work the way the blender community would like.

    For next beta for instance we hope to add Blender python and Blender GE python as specific selections for display/saving of code.

    There's also a Diff display for when you edit someone's code, which was a suggestion by Ton. Green background lines have had code added, red lines had code removed, a red border shows a location where entire lines were removed.

    I'm not sure code folding would be a great addition, for an editor sure, but for something that just shows you code... well... if a lot of people want it, we can have a looksee ;)

  2. @macouno
    Thanks, that is a great site. Could we get a "help"/"about" tab at the top near the PasteAll.org image. (Something to introduce features) It might make the site a little more clear to new users.

  3. amoose, definitely... I already told someone to write it, I'll write something to explain a few features myself as well ;)

    I also fixed the code looking weird for basse, apparently konqueror didn't like the way it used actual "tabs"... should look good in every browser now. If not... let me know!

  4. I've always used pastebin.com in the past...some edits I would recommend:

    1) Give pastes a UNIQUE id, don't just increment it.
    2) Give an option as to how long the paste will be kept for. Some people don't need it more than a day, some only a month, and some forever. It's good for your users, and good for you as well.
    3) Don't make the pasteall.org header link to the homepage in a new page...make it open in the same page. If people wanted it to open in a new window they'll right click -> open in new window/tab or just middle click (Firefox ftw)

    Great job!

    (The Makers of the Blender Model Repository are also cooking something up!)

  5. Jacob Randal on

    That is one sweet site. I think it will be very useful. The only thing I can think of to add would be a tool that underlines any mistakes in the code (misspellings, incomplete statements, etc). Of course it would be very complex but it would be nice to have, especially for python.

    Concerning python, what are the most common mistakes users tend to make? Perhaps a tool can be made to address these common mistakes and get users back on track. The tool might make auto-complete suggestions to users as they write, based upon what has already been written in the code. This would be useful for people who don't want to type a long command multiple times, they can just type it once and use the use auto-complete for all the rest.

    However, I'm not an avid python user, so my suggestions can only go so far. I'd like to see other suggestions from some more qualified people. What do you guys think?

  6. Hey guys thanks for the feedback.

    @Dion
    1. Well it is unique already, I'm not sure we can get more unique than this...
    2. Yes currently pastes are simply stored... it's one of those things we're considering for the next release.
    3. LOL... ehm... I'll go find out who put that in and kick their butts... well spotted.

    @scibotic
    There is a "copy to clipboard" button at the right top, behind the "view as" dropdown.

    Remember this is just something that makes it easy for people to show the code they have to other people, it's not an online editor, that would be very very complicated, as would showing errors in code (though it might be interesting to look at).

  7. macuono,

    I think what Dion is talking about is a unique pseudo-random id. Something like "13e4gb98a" instead of just "14". This way, it makes it harder for someone to just "walk through" all the entries by incrementing or decrementing the number from a known URL.

    Depending on how long you wanted them to be, you could use something like MD5 to come up with one. MD5 signatures are a little long (32 hex chars) - but you could combine the two approaches to generate a non-guessable ID.

    Take the normal ID number you would assign: 14
    append a hyphen
    Calculate the MD5 of the uploaded file and use every 4th char (total of 8)

    You then end up with an ID like "14-a742ee0b"

    This doesn't prevent an automated dictionary attack - but it still provides 4 billion possible combinations of "hash" for each number you assign. It makes it unlikely for someone to just "wander" into someone else's pasted code.

  8. I agree with the suggestion to use a less easily guessable ID! Most download sites do it too to prevent people from just wandering into downloads or attempting to download the entire lot/as much as possible...

  9. That is one sweet site. I think it will be very useful. The only thing I can think of to add would be a tool that underlines any mistakes in the code (misspellings, incomplete statements, etc). Of course it would be very complex but it would be nice to have, especially for python.

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×